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

Method test_namespace

Lib/test/test_argparse.py:6102–6105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6100 self.assertStringEqual(argument, string)
6101
6102 def test_namespace(self):
6103 ns = argparse.Namespace(foo=42, bar='spam')
6104 string = "Namespace(foo=42, bar='spam')"
6105 self.assertStringEqual(ns, string)
6106
6107 def test_namespace_starkwargs_notidentifier(self):
6108 ns = argparse.Namespace(**{'"': 'quote'})

Callers

nothing calls this directly

Calls 1

assertStringEqualMethod · 0.95

Tested by

no test coverage detected