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

Function test_poutput_string

tests/test_cmd2.py:2371–2376  ·  view source on GitHub ↗
(outsim_app)

Source from the content-addressed store, hash-verified

2369
2370
2371def test_poutput_string(outsim_app) -> None:
2372 msg = "This is a test"
2373 outsim_app.poutput(msg)
2374 out = outsim_app.stdout.getvalue()
2375 expected = msg + "\n"
2376 assert out == expected
2377
2378
2379def test_poutput_zero(outsim_app) -> None:

Callers

nothing calls this directly

Calls 2

poutputMethod · 0.80
getvalueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…