MCPcopy Create free account
hub / github.com/alephdata/aleph / assertDictEqual

Method assertDictEqual

aleph/tests/test_search_query.py:18–22  ·  view source on GitHub ↗
(self, d1, d2, msg=None)

Source from the content-addressed store, hash-verified

16 # using assertEquals, so it fails to allow lists to be
17 # in any order
18 def assertDictEqual(self, d1, d2, msg=None):
19 for k, v1 in d1.items():
20 self.assertIn(k, d2, msg)
21 v2 = d2[k]
22 self.assertEqual(v1, v2, msg)
23
24 # The standard assertItemsEqual doesn't use assertEquals
25 # so fails to correctly compare complex data types

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected