Small changes to tests

stix2.1
Emmanuelle Vargas-Gonzalez 2018-07-06 14:11:59 -04:00
parent 52c1850655
commit 21d5451d1c
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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