diff options
author | root <skkaushik212@gmail.com> | 2020-05-01 16:07:29 +0530 |
---|---|---|
committer | root <skkaushik212@gmail.com> | 2020-05-01 16:07:29 +0530 |
commit | 4dd9abd6a9df35ef6b6488cccdd3b4a7f80c094a (patch) | |
tree | 74308200bb1a42145d044ae3c9804568cb4a9300 | |
parent | a0a5e8248183b46f554d13bf2a42fbbb1fb6fa09 (diff) | |
download | mitmproxy-4dd9abd6a9df35ef6b6488cccdd3b4a7f80c094a.tar.gz mitmproxy-4dd9abd6a9df35ef6b6488cccdd3b4a7f80c094a.tar.bz2 mitmproxy-4dd9abd6a9df35ef6b6488cccdd3b4a7f80c094a.zip |
add test for console error
-rw-r--r-- | test/mitmproxy/test_command_lexer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mitmproxy/test_command_lexer.py b/test/mitmproxy/test_command_lexer.py index cdda1085..ec994087 100644 --- a/test/mitmproxy/test_command_lexer.py +++ b/test/mitmproxy/test_command_lexer.py @@ -16,6 +16,7 @@ from mitmproxy import command_lexer ("'foo'x", False), ('''"foo ''', True), ('''"foo 'bar' ''', True), + ('"foo\\', True), ] ) def test_partial_quoted_string(test_input, valid): @@ -34,6 +35,7 @@ def test_partial_quoted_string(test_input, valid): ("'foo'x", ["'foo'", 'x']), ('''"foo''', ['"foo']), ('''"foo 'bar' ''', ['''"foo 'bar' ''']), + ('"foo\\', ['"foo\\']), ] ) def test_expr(test_input, expected): |