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

Method assertHelp

Lib/test/test_optparse.py:184–190  ·  view source on GitHub ↗
(self, parser, expected_help)

Source from the content-addressed store, hash-verified

182 self.assertRaises(func, args, None, TypeError, expected_message)
183
184 def assertHelp(self, parser, expected_help):
185 actual_help = parser.format_help()
186 if actual_help != expected_help:
187 raise self.failureException(
188 'help text failure; expected:\n"' +
189 expected_help + '"; got:\n"' +
190 actual_help + '"\n')
191
192# -- Test make_option() aka Option -------------------------------------
193

Callers 12

test_default_prognameMethod · 0.80
test_custom_prognameMethod · 0.80
test_option_defaultMethod · 0.80
test_parser_default_1Method · 0.80
test_parser_default_2Method · 0.80
test_no_defaultMethod · 0.80
test_default_none_1Method · 0.80
test_default_none_2Method · 0.80
test_float_defaultMethod · 0.80
test_alt_expandMethod · 0.80
test_no_expandMethod · 0.80
test_callback_helpMethod · 0.80

Calls 1

format_helpMethod · 0.45

Tested by

no test coverage detected