Small changes to tests
parent
52c1850655
commit
21d5451d1c
|
@ -260,7 +260,7 @@ class _STIXBase(collections.Mapping):
|
|||
Returns:
|
||||
str: The serialized JSON object.
|
||||
|
||||
Note:
|
||||
Notes:
|
||||
The argument ``pretty=True`` will output the STIX object following
|
||||
spec order. Using this argument greatly impacts object serialization
|
||||
performance. If your use case is centered across machine-to-machine
|
||||
|
|
|
@ -853,7 +853,7 @@ def test_register_custom_object():
|
|||
class CustomObject2(object):
|
||||
_type = 'awesome-object'
|
||||
|
||||
stix2._register_object(CustomObject2, version="2.0")
|
||||
stix2.core._register_object(CustomObject2, version="2.0")
|
||||
# Note that we will always check against newest OBJ_MAP.
|
||||
assert (CustomObject2._type, CustomObject2) in stix2.v20.OBJ_MAP.items()
|
||||
|
||||
|
|
|
@ -857,7 +857,7 @@ def test_register_custom_object():
|
|||
class CustomObject2(object):
|
||||
_type = 'awesome-object'
|
||||
|
||||
stix2._register_object(CustomObject2, version="2.1")
|
||||
stix2.core._register_object(CustomObject2, version="2.1")
|
||||
# Note that we will always check against newest OBJ_MAP.
|
||||
assert (CustomObject2._type, CustomObject2) in stix2.v21.OBJ_MAP.items()
|
||||
|
||||
|
|
Loading…
Reference in New Issue