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

Method test_has_option

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

Source from the content-addressed store, hash-verified

367 self.assertTrue(opt1 is opt2 is opt3 is opt4)
368
369 def test_has_option(self):
370 self.assertTrue(self.parser.has_option("-v"))
371 self.assertTrue(self.parser.has_option("--verbose"))
372
373 def assertTrueremoved(self):
374 self.assertTrue(self.parser.get_option("-v") is None)

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
has_optionMethod · 0.45

Tested by

no test coverage detected