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

Method test_getnewargs

Lib/test/test_str.py:2555–2560  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2553 self.assertEqual(s, "3")
2554
2555 def test_getnewargs(self):
2556 text = 'abc'
2557 args = text.__getnewargs__()
2558 self.assertIsNot(args[0], text)
2559 self.assertEqual(args[0], text)
2560 self.assertEqual(len(args), 1)
2561
2562 def test_compare(self):
2563 # Issue #17615

Callers

nothing calls this directly

Calls 3

assertIsNotMethod · 0.80
__getnewargs__Method · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected