diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-10 19:02:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 19:02:33 -0500 |
commit | 68240f97141b6a0b4c9b64f3bfaa8c603b3963b9 (patch) | |
tree | 03d057334066f693f5fef4f99f120bba72d3b699 /tests/test_transcript.py | |
parent | ec5539fa8c0d2f0b783869e73cacde1af32465b0 (diff) | |
parent | c879a8e4cc831c6032c297d7d42c5e71583706ba (diff) | |
download | cmd2-git-68240f97141b6a0b4c9b64f3bfaa8c603b3963b9.tar.gz |
Merge pull request #42 from python-cmd2/perror_improvement
Perror improvement
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 7e89180a..6b229862 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -302,3 +302,10 @@ def test_multiline_command_transcript_with_comments_at_beginning(request, capsys else: assert err == '' assert out == '' + + +def test_invalid_syntax(_cmdline_app, capsys): + run_cmd(_cmdline_app, 'speak "') + out, err = capsys.readouterr() + expected = normalize("""ERROR: Invalid syntax: No closing quotation""") + assert normalize(str(err)) == expected |