summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-03 00:11:44 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-05-03 00:11:44 -0400
commit8707ba1522e425763b2e4bdcb418c17ef43eac4b (patch)
treeb7f60f0f938d1ad2d161ce7660e36b645d9a2d5f /tests
parent0215ff40fff6e7f2b87647c880343b21da1a8e93 (diff)
downloadcmd2-git-8707ba1522e425763b2e4bdcb418c17ef43eac4b.tar.gz
Added unit test to partially cover cmd2.cmd2.Cmd.ppaged()
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index b570ad3c..a444da2f 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1710,3 +1710,11 @@ def test_unalias_non_existing(base_app, capsys):
run_cmd(base_app, 'unalias fake')
out, err = capsys.readouterr()
assert "does not exist" in err
+
+
+def test_ppaged(base_app):
+ msg = 'testing...'
+ end = '\n'
+ base_app.ppaged(msg)
+ out = base_app.stdout.buffer
+ assert out == msg + end \ No newline at end of file