cti-python-stix2/stix2/test/v20
Michael Chisholm 2cda97cf5e Changed STIX object initialization to formulate a property order
and process properties in that order.  This establishes iteration
order on object properties, making the object_properties() method
unnecessary.  So the latter method has been deleted.  All uses
of that method have been removed.

Removed unnecessary deepcopy() in STIXJSONEncoder, to improve
efficiency.  This uncovered a bug which had been affecting
STIXdatetime instances.  Not deepcopying doesn't trip the bug,
which can change serialization format.  This caused a unit
test to fail, which was checking serialization format.  I fixed
the unit test.

Fixed a bug in _STIXBase.__repr__ which caused it to omit all
properties with falsey values.  This caused several unit tests
to break, since they were written against the old buggy repr
format.  Notably, 'revoked=False' was never included in reprs
before, but it is now.
2021-07-06 20:32:58 -04:00
..
stix2_data Update timestamps in v20 testsuite JSON files 2019-01-23 13:42:25 -05:00
__init__.py Create new test subpackages 2018-06-30 19:36:54 -04:00
conftest.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
constants.py Replace most SDO/SRO values in tests with IDs from constants.py 2019-01-29 10:52:59 -05:00
test_attack_pattern.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_base.py Move v20 tests to their own package 2018-07-03 07:02:57 -04:00
test_bundle.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_campaign.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_course_of_action.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_custom.py Code style and behavioral improvements in ExtensionsProperty: 2021-06-25 22:20:02 -04:00
test_datastore.py more pre-commit changes 2018-11-29 13:50:05 -05:00
test_datastore_composite.py Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into stix2.1 2018-11-01 07:57:09 -04:00
test_datastore_filesystem.py Fix bug when adding custom obj to FileSystemSink 2020-07-20 00:04:32 -04:00
test_datastore_filters.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_datastore_memory.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_datastore_taxii.py remove `six` from tests 2021-03-12 16:46:34 -05:00
test_environment.py expose configuration options, combine weight dictionary, update tests 2021-03-01 12:27:52 -05:00
test_external_reference.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_fixtures.py Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into stix2.1 2018-07-11 09:41:42 -04:00
test_granular_markings.py add `id` as special-case option in regex. closes #406 2020-06-08 09:27:12 -04:00
test_identity.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_indicator.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_intrusion_set.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_kill_chain_phases.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_malware.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_marking_definition.py update tests to make sure we are testing the serialized instance correctly 2019-05-08 10:36:31 -04:00
test_markings.py Changed STIX object initialization to formulate a property order 2021-07-06 20:32:58 -04:00
test_object_markings.py Improve versionability detection when creating new versions 2020-06-05 14:24:16 -04:00
test_observed_data.py Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
test_parsing.py Change the stix2 class map structure to be keyed at the top 2021-01-20 16:59:38 -05:00
test_pattern_equivalence.py Graph Equivalence (#449) 2020-10-16 11:35:26 -04:00
test_pattern_expressions.py all changes from add-trailing-commas v2.0.2 2021-01-13 17:52:15 -05:00
test_pickle.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_properties.py Fix tests, add a loophole to allow custom content 2021-06-14 17:34:06 -04:00
test_relationship.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_report.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_sighting.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_threat_actor.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_tool.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_utils.py pre-commit stylistic fixes 2021-01-20 20:49:01 -05:00
test_versioning.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_vulnerability.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00