Fix small indentation error

master
Desai, Kartikey H 2019-08-21 08:49:33 -04:00
parent bf1b8b567d
commit 5e9d6a6a14
2 changed files with 11 additions and 11 deletions

View File

@ -382,7 +382,7 @@ class _Observable(_STIXBase):
streamlined_object[key] = kwargs[key]
else:
if isinstance(kwargs[key], _STIXBase):
streamlined_object[key] = self._embed_obj_to_json(kwargs[key])
streamlined_object[key] = self._embed_obj_to_json(kwargs[key])
else:
streamlined_object[key] = kwargs[key]

View File

@ -1396,15 +1396,15 @@ def test_objects_deprecation():
)
# def test_deterministic_id_same_extra_prop_vals():
# email_addr_1 = stix2.v21.EmailAddress(
# value="john@example.com",
# display_name="Johnny Doe"
# )
def test_deterministic_id_same_extra_prop_vals():
email_addr_1 = stix2.v21.EmailAddress(
value="john@example.com",
display_name="Johnny Doe",
)
# email_addr_2 = stix2.v21.EmailAddress(
# value="john@example.com",
# display_name="Johnny Doe"
# )
email_addr_2 = stix2.v21.EmailAddress(
value="john@example.com",
display_name="Johnny Doe",
)
# assert email_addr_1.id == email_addr_2.id
assert email_addr_1.id == email_addr_2.id