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

Method test_uniquification

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

Source from the content-addressed store, hash-verified

62 self.assertRaises(TypeError, set().__init__, a=1)
63
64 def test_uniquification(self):
65 actual = sorted(self.s)
66 expected = sorted(self.d)
67 self.assertEqual(actual, expected)
68 self.assertRaises(PassThru, self.thetype, check_pass_thru())
69 self.assertRaises(TypeError, self.thetype, [[]])
70
71 def test_len(self):
72 self.assertEqual(len(self.s), len(self.d))

Callers

nothing calls this directly

Calls 3

check_pass_thruFunction · 0.85
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected