Fix file indentation
parent
99e76c26ae
commit
645a258c62
|
@ -657,7 +657,8 @@ def test_file_example():
|
||||||
f = stix2.v20.File(
|
f = stix2.v20.File(
|
||||||
name="qwerty.dll",
|
name="qwerty.dll",
|
||||||
hashes={
|
hashes={
|
||||||
"SHA-256": "ceafbfd424be2ca4a5f0402cae090dda2fb0526cf521b60b60077c0f622b285a"},
|
"SHA-256": "ceafbfd424be2ca4a5f0402cae090dda2fb0526cf521b60b60077c0f622b285a"
|
||||||
|
},
|
||||||
size=100,
|
size=100,
|
||||||
magic_number_hex="1C",
|
magic_number_hex="1C",
|
||||||
mime_type="application/msword",
|
mime_type="application/msword",
|
||||||
|
|
|
@ -30,7 +30,7 @@ def test_vulnerability_example():
|
||||||
name="CVE-2016-1234",
|
name="CVE-2016-1234",
|
||||||
external_references=[
|
external_references=[
|
||||||
stix2.v20.ExternalReference(source_name='cve',
|
stix2.v20.ExternalReference(source_name='cve',
|
||||||
external_id="CVE-2016-1234"),
|
external_id="CVE-2016-1234"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -160,13 +160,13 @@ def test_add_stix2_bundle_object(collection):
|
||||||
|
|
||||||
# create new STIX threat-actor
|
# create new STIX threat-actor
|
||||||
ta = stix2.v21.ThreatActor(name="Teddy Bear",
|
ta = stix2.v21.ThreatActor(name="Teddy Bear",
|
||||||
labels=["nation-state"],
|
labels=["nation-state"],
|
||||||
sophistication="innovator",
|
sophistication="innovator",
|
||||||
resource_level="government",
|
resource_level="government",
|
||||||
goals=[
|
goals=[
|
||||||
"compromising environment NGOs",
|
"compromising environment NGOs",
|
||||||
"water-hole attacks geared towards energy sector",
|
"water-hole attacks geared towards energy sector",
|
||||||
])
|
])
|
||||||
|
|
||||||
tc_sink.add(stix2.v21.Bundle(objects=[ta]))
|
tc_sink.add(stix2.v21.Bundle(objects=[ta]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue