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

Method setUp

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

Source from the content-addressed store, hash-verified

337
338class TestOptionParser(BaseTest):
339 def setUp(self):
340 self.parser = OptionParser()
341 self.parser.add_option("-v", "--verbose", "-n", "--noisy",
342 action="store_true", dest="verbose")
343 self.parser.add_option("-q", "--quiet", "--silent",
344 action="store_false", dest="verbose")
345
346 def test_add_option_no_Option(self):
347 self.assertTypeError(self.parser.add_option,

Callers

nothing calls this directly

Calls 2

OptionParserClass · 0.90
add_optionMethod · 0.45

Tested by

no test coverage detected