MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_dict_mixed_keys_items

Method test_dict_mixed_keys_items

Lib/test/test_dictviews.py:63–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 self.assertNotEqual(d.items(), e.items())
62
63 def test_dict_mixed_keys_items(self):
64 d = {(1, 1): 11, (2, 2): 22}
65 e = {1: 1, 2: 2}
66 self.assertEqual(d.keys(), e.items())
67 self.assertNotEqual(d.items(), e.keys())
68
69 def test_dict_values(self):
70 d = {1: 10, "a": "ABC"}

Callers

nothing calls this directly

Calls 4

assertNotEqualMethod · 0.80
assertEqualMethod · 0.45
keysMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected