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

Method test_command_usage

Lib/test/test_tabnanny.py:332–336  ·  view source on GitHub ↗

Should display usage on no arguments.

(self)

Source from the content-addressed store, hash-verified

330 self.validate_cmd(file_path)
331
332 def test_command_usage(self):
333 """Should display usage on no arguments."""
334 path = findfile('tabnanny.py')
335 stderr = f"Usage: {path} [-v] file_or_directory ..."
336 self.validate_cmd(stderr=stderr, expect_failure=True)
337
338 def test_quiet_flag(self):
339 """Should display less when quite mode is on."""

Callers

nothing calls this directly

Calls 2

validate_cmdMethod · 0.95
findfileFunction · 0.90

Tested by

no test coverage detected