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

Function test_stdsim_clear

tests/test_utils.py:118–123  ·  view source on GitHub ↗
(stdout_sim)

Source from the content-addressed store, hash-verified

116
117
118def test_stdsim_clear(stdout_sim) -> None:
119 my_str = "Hello World"
120 stdout_sim.write(my_str)
121 assert stdout_sim.getvalue() == my_str
122 stdout_sim.clear()
123 assert stdout_sim.getvalue() == ""
124
125
126def test_stdsim_getattr_exist(stdout_sim) -> None:

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.80
writeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…