diff options
author | Eric Lin <anselor@gmail.com> | 2020-09-08 16:01:04 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-09-11 13:50:45 -0400 |
commit | 92b8a38d66d255027a0440c45582d319f2694aab (patch) | |
tree | bc21c8f85ac997093eddcf3d865ad9825903d01e /tests/test_utils.py | |
parent | 872da20feba57f42dde204da01dc48c4c87e1b54 (diff) | |
download | cmd2-git-92b8a38d66d255027a0440c45582d319f2694aab.tar.gz |
Minor type hinting fixes.
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 27bf4743..2c94466c 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -154,6 +154,13 @@ def test_stdsim_read(stdout_sim): assert stdout_sim.read() == my_str assert stdout_sim.getvalue() == '' + stdout_sim.write(my_str) + + assert stdout_sim.getvalue() == my_str + assert stdout_sim.read(2) == my_str[:2] + assert stdout_sim.getvalue() == my_str[2:] + + def test_stdsim_read_bytes(stdout_sim): b_str = b'Hello World' stdout_sim.buffer.write(b_str) |