MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_unknown_args

Method test_unknown_args

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

Source from the content-addressed store, hash-verified

885
886 @support.requires_subprocess()
887 def test_unknown_args(self):
888 return_code, output = self.invoke_command_line("--unknown-arg")
889 excepted_return_code, _ = self.get_excepted_output("--unknown-arg")
890 self.assertEqual(return_code, excepted_return_code)
891 self.assertIn('[--user-base] [--user-site]', output)
892
893 @support.requires_subprocess()
894 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