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

Method test_help_unicode

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

Source from the content-addressed store, hash-verified

1539 self.assertHelpEquals(_expected_very_help_short_lines)
1540
1541 def test_help_unicode(self):
1542 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE)
1543 self.parser.add_option("-a", action="store_true", help="ol\u00E9!")
1544 expect = """\
1545Options:
1546 -h, --help show this help message and exit
1547 -a ol\u00E9!
1548"""
1549 self.assertHelpEquals(expect)
1550
1551 def test_help_unicode_description(self):
1552 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE,

Callers

nothing calls this directly

Calls 3

assertHelpEqualsMethod · 0.95
add_optionMethod · 0.45

Tested by

no test coverage detected