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

Method test_namespace

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

Source from the content-addressed store, hash-verified

5982 self.assertStringEqual(argument, string)
5983
5984 def test_namespace(self):
5985 ns = argparse.Namespace(foo=42, bar='spam')
5986 string = "Namespace(foo=42, bar='spam')"
5987 self.assertStringEqual(ns, string)
5988
5989 def test_namespace_starkwargs_notidentifier(self):
5990 ns = argparse.Namespace(**{'"': 'quote'})

Callers

nothing calls this directly

Calls 1

assertStringEqualMethod · 0.95

Tested by

no test coverage detected