summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-25 12:40:36 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-25 13:29:25 +0300
commit5273902546d606f5c2acc165aafd1507ecc9a221 (patch)
tree405d417a0a28adc8ec539b3e6a433e5bd4bb19b5
parent1cab04fbfc732ff0cbcd0394fa0374300e1176e8 (diff)
downloadvmadm-5273902546d606f5c2acc165aafd1507ecc9a221.tar.gz
test: verify both dicts have the same key
Sponsored-by: author
-rw-r--r--subplot/vmadm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/subplot/vmadm.py b/subplot/vmadm.py
index 52233ed..acca754 100644
--- a/subplot/vmadm.py
+++ b/subplot/vmadm.py
@@ -142,6 +142,8 @@ def _assert_equal_objects(a, b):
for key in a:
assert key in b, f"wanted b to have key {key!r}"
_assert_equal_objects(a[key], b[key])
+ for key in b:
+ assert key in a, f"wanted a to have key {key!r}"
elif isinstance(a, list):
assert len(a) == len(
b