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

Method test_dict_values

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

Source from the content-addressed store, hash-verified

67 self.assertNotEqual(d.items(), e.keys())
68
69 def test_dict_values(self):
70 d = {1: 10, "a": "ABC"}
71 values = d.values()
72 self.assertEqual(set(values), {10, "ABC"})
73 self.assertEqual(len(values), 2)
74
75 def test_dict_repr(self):
76 d = {1: 10, "a": "ABC"}

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
valuesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected