summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-10 18:53:01 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-10 18:53:01 -0500
commitc879a8e4cc831c6032c297d7d42c5e71583706ba (patch)
tree03d057334066f693f5fef4f99f120bba72d3b699 /tests/test_transcript.py
parentf96dba6dfb045a92b738fceaffbd5f05cab3210a (diff)
downloadcmd2-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.py7
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