aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_exceptions.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 10:39:14 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 12:40:40 +0200
commita837230320378d629ba9f25960b1dfd25c892ad9 (patch)
treeeca444b3965abb294c6304ec41de2fbc307e240f /test/http/test_exceptions.py
parent199f2a44fed6b5f1c6fada6c96b981dfab5fded2 (diff)
downloadmitmproxy-a837230320378d629ba9f25960b1dfd25c892ad9.tar.gz
mitmproxy-a837230320378d629ba9f25960b1dfd25c892ad9.tar.bz2
mitmproxy-a837230320378d629ba9f25960b1dfd25c892ad9.zip
move code from mitmproxy to netlib
Diffstat (limited to 'test/http/test_exceptions.py')
-rw-r--r--test/http/test_exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/http/test_exceptions.py b/test/http/test_exceptions.py
new file mode 100644
index 00000000..aa57f831
--- /dev/null
+++ b/test/http/test_exceptions.py
@@ -0,0 +1,6 @@
+from netlib.http.exceptions import *
+
+def test_HttpAuthenticationError():
+ x = HttpAuthenticationError({"foo": "bar"})
+ assert str(x)
+ assert "foo" in x.headers