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

Method setUp

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

Source from the content-addressed store, hash-verified

779
780class TestBool(BaseTest):
781 def setUp(self):
782 options = [make_option("-v",
783 "--verbose",
784 action="store_true",
785 dest="verbose",
786 default=''),
787 make_option("-q",
788 "--quiet",
789 action="store_false",
790 dest="verbose")]
791 self.parser = OptionParser(option_list = options)
792
793 def test_bool_default(self):
794 self.assertParseOK([],

Callers 1

setUpMethod · 0.45

Calls 1

OptionParserClass · 0.90

Tested by

no test coverage detected