summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-09-08 16:01:04 -0400
committeranselor <anselor@gmail.com>2020-09-11 13:50:45 -0400
commit92b8a38d66d255027a0440c45582d319f2694aab (patch)
treebc21c8f85ac997093eddcf3d865ad9825903d01e /tests/test_utils.py
parent872da20feba57f42dde204da01dc48c4c87e1b54 (diff)
downloadcmd2-git-92b8a38d66d255027a0440c45582d319f2694aab.tar.gz
Minor type hinting fixes.
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py7
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)