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

Function test_parse_embedded_comment_char

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

Source from the content-addressed store, hash-verified

232
233
234def test_parse_embedded_comment_char(parser) -> None:
235 command_str = "hi " + constants.COMMENT_CHAR + " not a comment"
236 statement = parser.parse(command_str)
237 assert statement == constants.COMMENT_CHAR + " not a comment"
238 assert statement.args == statement
239 assert statement.command == "hi"
240 assert statement.argv == shlex_split(command_str)
241 assert statement.arg_list == statement.argv[1:]
242
243
244@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

shlex_splitFunction · 0.90
parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…