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

Method test_repr

Lib/test/test_slice.py:79–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
78
79 def test_repr(self):
80 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
81
82 def test_hash(self):
83 self.assertEqual(hash(slice(5)), slice(5).__hash__())

Callers

nothing calls this directly

Calls 2

sliceClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected