Add a missing required property to fix up an external-reference

test.
master
Michael Chisholm 2020-03-05 17:38:03 -05:00
parent a5dc514403
commit 22f2b241a7
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ def test_external_reference_bad_hash():
with pytest.raises(stix2.exceptions.InvalidValueError): with pytest.raises(stix2.exceptions.InvalidValueError):
stix2.v21.ExternalReference( stix2.v21.ExternalReference(
source_name="ACME Threat Intel", source_name="ACME Threat Intel",
description="Threat report",
hashes={ hashes={
"SHA-123": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "SHA-123": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
} }