cti-python-stix2/stix2/test/v21
Michael Chisholm c7b4840232 Code style and behavioral improvements in ExtensionsProperty:
- Changed an error message "Cannot determine extension type."
At that point in the code, we in fact have a registered
extension type and the class for it, so it didn't seem to make
any sense.  I changed it to say that an extension of that type
couldn't be created from type of value given.  Because this is
really about typing (in both the old and new code), I also
changed the exception class to TypeError.

- Changed customization behavior: unregistered
"extension-definition--" style extensions are no longer
considered custom.  Their mere presence can no longer be
considered a customization, since it doesn't fit the
criteria, and in fact the extension mechanism is supposed to
supplant the old customization system anyway.  Unregistered
extensions of other types are still considered custom.

- Fixed up unit tests according to the exception message
change.

- Added a unit test for unregistered "extension-definition--"
style extensions.
2021-06-25 22:20:02 -04:00
..
stix2_data Fix the filesystem store to support the new top-level 2.1 SCOs. 2020-02-15 19:02:53 -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 add new file test_extension_definition.py and assigned new UUIDs to the constants 2021-03-31 15:00:54 -04: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 Remove unnecessary comments 2019-12-06 09:35:36 -05: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_confidence.py minor code changes 2018-11-28 16:51:35 -05: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 Update CompositeDataSource and deduplicate() to handle unversioned 2020-08-17 18:38:29 -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_deterministic_ids.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_environment.py Add proper customization enforcement for open vocabs. This adds 2021-03-31 16:20:28 -04:00
test_extension_definition.py add entry on extensions.ipynb, typos, and a couple of fixes for registry module and Marking decorator 2021-03-31 18:11:38 -04: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 Align tests with news additions from 'master' branch. 2018-07-11 09:43:37 -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_grouping.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_identity.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_incident.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_indicator.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_infrastructure.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -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_language_content.py Change "object_modified" property of LocationContent to be 2019-07-25 16:56:34 -04:00
test_location.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_malware.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_malware_analysis.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_marking_definition.py styling fixes 2021-01-15 16:05:57 -05:00
test_markings.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00
test_note.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -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 Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_opinion.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -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 Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
test_timestamp_precision.py Clean up ReferenceProperty.clean(), to use new APIs which are 2021-03-31 20:01:27 -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 some unit tests which try to version marking-definitions. 2021-01-28 23:02:23 -05:00
test_vulnerability.py update test suite for use of .serialize(pretty=True) 2021-03-31 12:39:14 -04:00