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

Method test_command_usage

Lib/test/test_tabnanny.py:329–333  ·  view source on GitHub ↗

Should display usage on no arguments.

(self)

Source from the content-addressed store, hash-verified

327 self.validate_cmd(file_path)
328
329 def test_command_usage(self):
330 """Should display usage on no arguments."""
331 path = findfile('tabnanny.py')
332 stderr = f"Usage: {path} [-v] file_or_directory ..."
333 self.validate_cmd(stderr=stderr, expect_failure=True)
334
335 def test_quiet_flag(self):
336 """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