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

Method test_prints_usage_with_help_flag

Lib/test/test_base64.py:1440–1443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1438 self.assertEqual(output.rstrip(), b'a\xffb')
1439
1440 def test_prints_usage_with_help_flag(self):
1441 output = self.get_output('-h')
1442 self.assertIn(b'usage: ', output)
1443 self.assertIn(b'-d, -u: decode', output)
1444
1445 def test_prints_usage_with_invalid_flag(self):
1446 output = script_helper.assert_python_failure('-m', 'base64', '-x').err

Callers

nothing calls this directly

Calls 2

get_outputMethod · 0.95
assertInMethod · 0.80

Tested by

no test coverage detected