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

Method test_nested_argument_group

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

Source from the content-addressed store, hash-verified

3117 self.assertEqual(cm.filename, __file__)
3118
3119 def test_nested_argument_group(self):
3120 parser = argparse.ArgumentParser()
3121 g = parser.add_argument_group()
3122 self.assertRaisesRegex(ValueError,
3123 'argument groups cannot be nested',
3124 g.add_argument_group)
3125
3126# ===================
3127# Parent parser tests

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.80
add_argument_groupMethod · 0.45

Tested by

no test coverage detected