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

Method test_unknown_args

Lib/test/test_site.py:879–883  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

877
878 @support.requires_subprocess()
879 def test_unknown_args(self):
880 return_code, output = self.invoke_command_line("--unknown-arg")
881 excepted_return_code, _ = self.get_excepted_output("--unknown-arg")
882 self.assertEqual(return_code, excepted_return_code)
883 self.assertIn('[--user-base] [--user-site]', output)
884
885 @support.requires_subprocess()
886 def test_base_arg(self):

Callers

nothing calls this directly

Calls 4

invoke_command_lineMethod · 0.95
get_excepted_outputMethod · 0.95
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected