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

Method setUp

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

Source from the content-addressed store, hash-verified

641
642class TestStandard(BaseTest):
643 def setUp(self):
644 options = [make_option("-a", type="string"),
645 make_option("-b", "--boo", type="int", dest='boo'),
646 make_option("--foo", action="append")]
647
648 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE,
649 option_list=options)
650
651 def test_required_value(self):
652 self.assertParseFail(["-a"], "-a option requires 1 argument")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected