python-tuf/tests
Martin Vrachev 6ea5372edb Take order into account for certain cases
After we have dropped OrderedDict in e3b267e2e0
we are relying on python3.7+ default behavior to preserve the insertion
order, but there is one caveat.
When comparing dictionaries the order is still irrelevant compared to
OrderedDict. For example:
>>> OrderedDict([(1,1), (2,2)]) == OrderedDict([(2,2), (1,1)])
False
>>> dict([(1,1), (2,2)]) == dict([(2,2), (1,1)])
True

There are two special attributes, defined in the specification, where
the order makes a difference when comparing two objects:
- Metadata.signatures
- Targets.delegations.roles.
We want to make sure that the order in those two cases makes a
difference when comparing two objects and that's why those changes
are required inside two __eq__ implementations.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2022-02-28 14:42:06 +02:00
..
repository_data test: drop legacy test metadata generation scripts 2022-01-26 14:52:04 +01:00
.coveragerc Update misc repo metadata after legacy code drop 2022-01-26 15:25:40 +01:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Apply black on tests/aggregate_tests.py 2021-12-07 11:51:23 +02:00
repository_simulator.py exceptions: rename FetcherHTTPError 2022-02-04 11:03:12 +02:00
simple_server.py tests: Remove unused options from simple_server 2022-01-21 11:31:09 +02:00
test_api.py Add "validation" arg in JSONSerializer 2022-02-28 14:42:06 +02:00
test_examples.py test: add missing return type hint in test method 2021-12-10 10:48:36 +01:00
test_fetcher_ng.py exceptions: rename FetcherHTTPError 2022-02-04 11:03:12 +02:00
test_metadata_eq_.py Take order into account for certain cases 2022-02-28 14:42:06 +02:00
test_metadata_serialization.py Add support for unrecognized fields in Metadata 2022-02-14 12:12:54 +02:00
test_trusted_metadata_set.py Add "validation" arg in JSONSerializer 2022-02-28 14:42:06 +02:00
test_updater_consistent_snapshot.py Fix linter errors in tests 2021-12-15 12:14:20 +02:00
test_updater_delegation_graphs.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_fetch_target.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_key_rotations.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_ng.py test: stop using unittest_toolbox in new tests 2022-01-24 13:54:13 +01:00
test_updater_top_level_update.py Merge pull request #1766 from jku/tests-sim-add-key-rotation 2022-02-03 13:29:23 +01:00
test_utils.py test: drop legacy tests and test tooling 2022-01-26 15:13:17 +01:00
utils.py test: drop usage of custom log module in new test 2022-01-26 14:54:43 +01:00