diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-02 17:42:41 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-02 17:42:41 -0500 |
commit | 00fab107f31962133946e98eadb3dd4be5372947 (patch) | |
tree | 501360fd6045265a046b63e682e20542458b3f56 /tests/test_cmd2.py | |
parent | d0d98f0aea35fcd378fc93f02d8449030b1ba454 (diff) | |
download | cmd2-git-00fab107f31962133946e98eadb3dd4be5372947.tar.gz |
Fixed unit test on Windows
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 67f4c9c6..477d476e 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1374,7 +1374,7 @@ def test_pseudo_raw_input_piped_rawinput_true_echo_true(capsys): app, out = piped_rawinput_true(capsys, True, command) out = out.splitlines() assert out[0] == '{}{}'.format(app.prompt, command) - assert out[1] == 'colors: True' + assert out[1].startswith('colors:') # using the decorator puts the original function at six.moves.input # back when this method returns @@ -1384,7 +1384,7 @@ def test_pseudo_raw_input_piped_rawinput_true_echo_false(capsys): command = 'set' app, out = piped_rawinput_true(capsys, False, command) firstline = out.splitlines()[0] - assert firstline == 'colors: True' + assert firstline.startswith('colors:') assert not '{}{}'.format(app.prompt, command) in out # the next helper function and two tests check for piped @@ -1404,13 +1404,13 @@ def test_pseudo_raw_input_piped_rawinput_false_echo_true(capsys): app, out = piped_rawinput_false(capsys, True, command) out = out.splitlines() assert out[0] == '{}{}'.format(app.prompt, command) - assert out[1] == 'colors: True' + assert out[1].startswith('colors:') def test_pseudo_raw_input_piped_rawinput_false_echo_false(capsys): command = 'set' app, out = piped_rawinput_false(capsys, False, command) firstline = out.splitlines()[0] - assert firstline == 'colors: True' + assert firstline.startswith('colors:') assert not '{}{}'.format(app.prompt, command) in out # |