diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-10 18:53:01 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-10 18:53:01 -0500 |
commit | c879a8e4cc831c6032c297d7d42c5e71583706ba (patch) | |
tree | 03d057334066f693f5fef4f99f120bba72d3b699 /tests/test_transcript.py | |
parent | f96dba6dfb045a92b738fceaffbd5f05cab3210a (diff) | |
download | cmd2-git-c879a8e4cc831c6032c297d7d42c5e71583706ba.tar.gz |
Fixed a typo and added a unit test.
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 |