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