MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_parse_command_with_args

Function test_parse_command_with_args

tests/test_parsing.py:193–200  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

191
192
193def test_parse_command_with_args(parser) -> None:
194 line = "command with args"
195 statement = parser.parse(line)
196 assert statement.command == "command"
197 assert statement == "with args"
198 assert statement.args == statement
199 assert statement.argv == ["command", "with", "args"]
200 assert statement.arg_list == statement.argv[1:]
201
202
203def test_parse_command_with_quoted_args(parser) -> None:

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…