MCPcopy Index your code
hub / github.com/python/cpython / test_mappings

Method test_mappings

Lib/test/test_compare.py:498–506  ·  view source on GitHub ↗

Compare dict.

(self)

Source from the content-addressed store, hash-verified

496 self.assert_total_order(f1, s2, -1)
497
498 def test_mappings(self):
499 """ Compare dict.
500 """
501 d1 = {1: "a", 2: "b"}
502 d2 = {2: "b", 3: "c"}
503 d3 = {3: "c", 2: "b"}
504 self.assert_equality_only(d1, d1, True)
505 self.assert_equality_only(d1, d2, False)
506 self.assert_equality_only(d2, d3, True)
507
508
509if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

assert_equality_onlyMethod · 0.95

Tested by

no test coverage detected