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

Method test_remove_short_opt

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

Source from the content-addressed store, hash-verified

385 self.assertTrue(self.parser.has_option("--silent"))
386
387 def test_remove_short_opt(self):
388 self.parser.remove_option("-n")
389 self.assertTrueremoved()
390
391 def test_remove_long_opt(self):
392 self.parser.remove_option("--verbose")

Callers

nothing calls this directly

Calls 2

assertTrueremovedMethod · 0.95
remove_optionMethod · 0.45

Tested by

no test coverage detected