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")