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

Method assertStringEqual

Lib/test/test_argparse.py:6062–6064  ·  view source on GitHub ↗
(self, obj, result_string)

Source from the content-addressed store, hash-verified

6060 """Test str() and repr() on Optionals and Positionals"""
6061
6062 def assertStringEqual(self, obj, result_string):
6063 for func in [str, repr]:
6064 self.assertEqual(func(obj), result_string)
6065
6066 def test_optional(self):
6067 option = argparse.Action(

Calls 2

funcFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected