Fix file indentation

stix2.1
Emmanuelle Vargas-Gonzalez 2018-07-10 14:46:46 -04:00
parent 99e76c26ae
commit 645a258c62
3 changed files with 10 additions and 9 deletions

View File

@ -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",

View File

@ -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"),
],
)

View File

@ -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]))