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

Function test_stdsim_buffer_write_bytes

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

Source from the content-addressed store, hash-verified

77
78
79def test_stdsim_buffer_write_bytes(stdout_sim) -> None:
80 b_str = b"Hello World"
81 stdout_sim.buffer.write(b_str)
82 assert stdout_sim.getvalue() == b_str.decode()
83 assert stdout_sim.getbytes() == b_str
84
85
86def test_stdsim_buffer_write_str(stdout_sim) -> None:

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.80
getbytesMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…