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

Method assertStringEqual

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

Source from the content-addressed store, hash-verified

5942 """Test str() and repr() on Optionals and Positionals"""
5943
5944 def assertStringEqual(self, obj, result_string):
5945 for func in [str, repr]:
5946 self.assertEqual(func(obj), result_string)
5947
5948 def test_optional(self):
5949 option = argparse.Action(

Calls 2

funcFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected