test_aide.equality.assert_dict_equal_msg¶
- test_aide.equality.assert_dict_equal_msg(actual, expected, msg_tag)[source]¶
Compares two actual and expected dict objects and asserts equality. Error output will identify (first) location of mismatch values.
Checks actual and expected are both dicts, then same number of keys then loops through pariwise values from actual and expected and calls assert_equal_dispatch function on these pairs..
- Parameters
actual (dict) – The actual dict to compare.
expected (dict) – The expected dict to compare to actual.
msg_tag (string) – A tag for the AssertionException message.