From c879a8e4cc831c6032c297d7d42c5e71583706ba Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Fri, 10 Feb 2017 18:53:01 -0500 Subject: Fixed a typo and added a unit test. --- tests/test_transcript.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_transcript.py') 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 -- cgit v1.2.1