Skip to content

Commit 09a10de

Browse files
authored
Merge pull request #382 from python-cmd2/code_coverage
Added unit test to partially cover cmd2.cmd2.Cmd.ppaged()
2 parents 0215ff4 + 8624a27 commit 09a10de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_cmd2.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,3 +1710,11 @@ def test_unalias_non_existing(base_app, capsys):
17101710
run_cmd(base_app, 'unalias fake')
17111711
out, err = capsys.readouterr()
17121712
assert "does not exist" in err
1713+
1714+
1715+
def test_ppaged(base_app):
1716+
msg = 'testing...'
1717+
end = '\n'
1718+
base_app.ppaged(msg)
1719+
out = base_app.stdout.buffer
1720+
assert out == msg + end

0 commit comments

Comments
 (0)