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

Method test_parser

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

Source from the content-addressed store, hash-verified

6120 self.assertStringEqual(ns, string)
6121
6122 def test_parser(self):
6123 parser = argparse.ArgumentParser(prog='PROG')
6124 string = (
6125 "ArgumentParser(prog='PROG', usage=None, description=None, "
6126 "formatter_class=%r, conflict_handler='error', "
6127 "add_help=True)" % argparse.HelpFormatter)
6128 self.assertStringEqual(parser, string)
6129
6130# ===============
6131# Namespace tests

Callers

nothing calls this directly

Calls 1

assertStringEqualMethod · 0.95

Tested by

no test coverage detected