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

Method test_copy_list

Lib/test/test_copy.py:108–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.assertIs(copy.copy(x), x)
107
108 def test_copy_list(self):
109 x = [1, 2, 3]
110 y = copy.copy(x)
111 self.assertEqual(y, x)
112 self.assertIsNot(y, x)
113 x = []
114 y = copy.copy(x)
115 self.assertEqual(y, x)
116 self.assertIsNot(y, x)
117
118 def test_copy_tuple(self):
119 x = (1, 2, 3)

Callers

nothing calls this directly

Calls 3

assertIsNotMethod · 0.80
copyMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected