diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-05-03 00:23:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-03 00:23:38 -0400 |
commit | 09a10decf5ae10a1f4c0401fa507ceee6db720d3 (patch) | |
tree | 7c0bd9078d6583ec4d629499b970ca019a85ae7b | |
parent | 0215ff40fff6e7f2b87647c880343b21da1a8e93 (diff) | |
parent | 8624a273d4b19b0bb5c8e5b99a6a7688a6bf6f69 (diff) | |
download | cmd2-git-09a10decf5ae10a1f4c0401fa507ceee6db720d3.tar.gz |
Merge pull request #382 from python-cmd2/code_coverage
Added unit test to partially cover cmd2.cmd2.Cmd.ppaged()
-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 b570ad3c..b6416005 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 |