diff options
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 03cab912..7e9769e3 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -148,6 +148,14 @@ def test_base_error(base_app): assert out == ["*** Unknown syntax: meow"] +def test_base_pause(base_app): + # Mock out the input call so we don't actually wait for a user's response on stdin + m = mock.MagicMock(name='input', return_value='\n') + sm.input = m + + run_cmd(base_app, 'pause') + m.assert_called_once() + def test_base_history(base_app): run_cmd(base_app, 'help') run_cmd(base_app, 'shortcuts') |