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

Function test_parse_command_with_quoted_args

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

Source from the content-addressed store, hash-verified

201
202
203def test_parse_command_with_quoted_args(parser) -> None:
204 line = 'command with "quoted args" and "some not"'
205 statement = parser.parse(line)
206 assert statement.command == "command"
207 assert statement == 'with "quoted args" and "some not"'
208 assert statement.args == statement
209 assert statement.argv == ["command", "with", "quoted args", "and", "some not"]
210 assert statement.arg_list == ["with", '"quoted args"', "and", '"some not"']
211
212
213def test_parse_command_with_args_terminator_and_suffix(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…