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

Method test_combined_single_invalid_option

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

Source from the content-addressed store, hash-verified

773 [])
774
775 def test_combined_single_invalid_option(self):
776 self.parser.add_option("-t", action="store_true")
777 self.assertParseFail(["-test"],
778 "no such option: -e")
779
780class TestBool(BaseTest):
781 def setUp(self):

Callers

nothing calls this directly

Calls 2

assertParseFailMethod · 0.80
add_optionMethod · 0.45

Tested by

no test coverage detected