Fix small indentation error
parent
bf1b8b567d
commit
5e9d6a6a14
|
@ -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]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue