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

Method setUp

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

Source from the content-addressed store, hash-verified

837
838class TestCount(BaseTest):
839 def setUp(self):
840 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE)
841 self.v_opt = make_option("-v", action="count", dest="verbose")
842 self.parser.add_option(self.v_opt)
843 self.parser.add_option("--verbose", type="int", dest="verbose")
844 self.parser.add_option("-q", "--quiet",
845 action="store_const", dest="verbose", const=0)
846
847 def test_empty(self):
848 self.assertParseOK([], {'verbose': None}, [])

Callers

nothing calls this directly

Calls 2

add_optionMethod · 0.45

Tested by

no test coverage detected