MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_getnewargs

Method test_getnewargs

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

Source from the content-addressed store, hash-verified

2535 self.assertEqual(s, "3")
2536
2537 def test_getnewargs(self):
2538 text = 'abc'
2539 args = text.__getnewargs__()
2540 self.assertIsNot(args[0], text)
2541 self.assertEqual(args[0], text)
2542 self.assertEqual(len(args), 1)
2543
2544 def test_compare(self):
2545 # Issue #17615

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
assertIsNotMethod · 0.80
__getnewargs__Method · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected