aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlymanZerga11 <lymanZerga11@users.noreply.github.com>2017-02-13 10:39:48 +0800
committerGitHub <noreply@github.com>2017-02-13 10:39:48 +0800
commit577fb818b9491fc13ed11a2dee206c9294a5daff (patch)
tree933d30330e5c355891757d64003b470fb6e98e4e
parentf5b30b8872dd9d1c187435cb6d167c6cfb90b226 (diff)
downloadmitmproxy-577fb818b9491fc13ed11a2dee206c9294a5daff.tar.gz
mitmproxy-577fb818b9491fc13ed11a2dee206c9294a5daff.tar.bz2
mitmproxy-577fb818b9491fc13ed11a2dee206c9294a5daff.zip
Update test_flowlist.py
-rw-r--r--test/mitmproxy/console/test_flowlist.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mitmproxy/console/test_flowlist.py b/test/mitmproxy/console/test_flowlist.py
index 0f41fb42..1e1fadca 100644
--- a/test/mitmproxy/console/test_flowlist.py
+++ b/test/mitmproxy/console/test_flowlist.py
@@ -7,12 +7,12 @@ import pytest
from unittest import mock
-class ScriptError(Exception):
+class UrlError(Exception):
pass
def mock_add_log(message):
- raise ScriptError(message)
+ raise UrlError(message)
class TestFlowlist(tservers.MasterTest):
@@ -26,6 +26,6 @@ class TestFlowlist(tservers.MasterTest):
def test_new_request(self, test_func):
m = self.mkmaster()
x = flowlist.FlowListBox(m)
- with pytest.raises(ScriptError) as e:
+ with pytest.raises(UrlError) as e:
x.new_request("nonexistent url", "GET")
assert "Invalid URL" in str(e)