diff options
Diffstat (limited to 'tests/parsing.py')
-rw-r--r-- | tests/parsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parsing.py b/tests/parsing.py index 185cde9..52d3283 100644 --- a/tests/parsing.py +++ b/tests/parsing.py @@ -6,10 +6,10 @@ def test_path(tester: unittest.TestCase, flat_path: str) -> None: conf = pom_parser.load_path(conf_path) flat = pom_parser.load_path(flat_path) conf_items = {} - for item in conf.items(): + for item in conf: tester.assertTrue(flat.has(item.key), f'{conf_path} has key {item.key} but {flat_path} does not') conf_items[item.key] = item - for item in flat.items(): + for item in flat: tester.assertTrue(conf.has(item.key), f'{flat_path} has key {item.key} but {conf_path} does not') conf_item = conf_items[item.key] tester.assertEqual(conf_item.value, item.value, f'Values for key {item.key} do not match.') |