diff --git a/stix2/test/v20/test_bundle.py b/stix2/test/v20/test_bundle.py index 98d9757..6eae70d 100644 --- a/stix2/test/v20/test_bundle.py +++ b/stix2/test/v20/test_bundle.py @@ -196,7 +196,7 @@ def test_parse_unknown_type(): def test_stix_object_property(): - prop = stix2.v20.bundle.STIXObjectProperty() + prop = stix2.properties.STIXObjectProperty(spec_version='2.0') identity = stix2.v20.Identity(name="test", identity_class="individual") assert prop.clean(identity) is identity diff --git a/stix2/test/v21/test_bundle.py b/stix2/test/v21/test_bundle.py index e0b9179..b22fa64 100644 --- a/stix2/test/v21/test_bundle.py +++ b/stix2/test/v21/test_bundle.py @@ -203,7 +203,7 @@ def test_parse_unknown_type(): def test_stix_object_property(): - prop = stix2.v21.bundle.STIXObjectProperty() + prop = stix2.properties.STIXObjectProperty(spec_version='2.1') identity = stix2.v21.Identity(name="test", identity_class="individual") assert prop.clean(identity) is identity