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

Method test_required_value

Lib/test/test_optparse.py:651–652  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

649 option_list=options)
650
651 def test_required_value(self):
652 self.assertParseFail(["-a"], "-a option requires 1 argument")
653
654 def test_invalid_integer(self):
655 self.assertParseFail(["-b", "5x"],

Callers

nothing calls this directly

Calls 1

assertParseFailMethod · 0.80

Tested by

no test coverage detected