summaryrefslogtreecommitdiff
path: root/subplot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-03 09:34:08 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-05 10:12:21 +0300
commit37efe8e3d022d21bd2f6af741c8d5ee49da2fff5 (patch)
treeeb301167c07657836ca5b9fdb6e044da8242e976 /subplot
parentc15ca42605d760d519721a3e39e1834ac5b1cb15 (diff)
downloadvmadm-37efe8e3d022d21bd2f6af741c8d5ee49da2fff5.tar.gz
feat: if no networks are specified, use default
Also, drop lan, wan from test config, because we can't assume they're available in the environment the tests are run in. Sponsored-by: author
Diffstat (limited to 'subplot')
-rw-r--r--subplot/vmadm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subplot/vmadm.py b/subplot/vmadm.py
index acca754..473a673 100644
--- a/subplot/vmadm.py
+++ b/subplot/vmadm.py
@@ -137,10 +137,13 @@ def _expand_tilde(o):
def _assert_equal_objects(a, b):
+ logging.debug(f"comparing {a!r} and {b!r}")
assert type(a) == type(b)
if isinstance(a, dict):
+ logging.debug("both a and b are dicts")
for key in a:
assert key in b, f"wanted b to have key {key!r}"
+ logging.debug(f"comparing values for 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}"