pytest’s magic is clever enough. By writing
assert {'a': {'b': 2, 'c': {'d': 4} } } == {'a': {'b': 2, 'c': {'d': 4} } }
you will have a nested test on equality.
pytest’s magic is clever enough. By writing
assert {'a': {'b': 2, 'c': {'d': 4} } } == {'a': {'b': 2, 'c': {'d': 4} } }
you will have a nested test on equality.