From c187fcc5c2d92b86d8730afda7e345e6d86350c0 Mon Sep 17 00:00:00 2001 From: Miroslav Date: Sat, 16 Jun 2018 21:25:06 +0300 Subject: [PATCH] Coverage --- test/mitmproxy/test_command.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py index a22f7396a..b404d1196 100644 --- a/test/mitmproxy/test_command.py +++ b/test/mitmproxy/test_command.py @@ -304,6 +304,8 @@ def test_simple(): c.execute("") with pytest.raises(exceptions.CommandError, match="argument mismatch"): c.execute("one.two too many args") + with pytest.raises(exceptions.CommandError, match="Unknown"): + c.call("nonexistent") c.add("empty", a.empty) c.execute("empty")