diff options
Diffstat (limited to 'test/http/test_exceptions.py')
-rw-r--r-- | test/http/test_exceptions.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/http/test_exceptions.py b/test/http/test_exceptions.py index d7c438f7..49588d0a 100644 --- a/test/http/test_exceptions.py +++ b/test/http/test_exceptions.py @@ -1,26 +1,6 @@ from netlib.http.exceptions import * -from netlib import odict class TestHttpError: def test_simple(self): e = HttpError(404, "Not found") assert str(e) - -class TestHttpAuthenticationError: - def test_init(self): - headers = odict.ODictCaseless([("foo", "bar")]) - x = HttpAuthenticationError(headers) - assert str(x) - assert isinstance(x.headers, odict.ODictCaseless) - assert x.code == 407 - assert x.headers == headers - assert "foo" in x.headers.keys() - - def test_header_conversion(self): - headers = {"foo": "bar"} - x = HttpAuthenticationError(headers) - assert isinstance(x.headers, odict.ODictCaseless) - assert x.headers.lst == headers.items() - - def test_repr(self): - assert repr(HttpAuthenticationError()) == "Proxy Authentication Required" |