diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-03-20 23:22:50 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-03-20 23:22:50 +0100 |
commit | 403ac82a7d07f08e931aedde4cbe4289b09d60ec (patch) | |
tree | 766e498ef6b0d98746778531fc43ae1bee0cdab9 /test/netlib | |
parent | e7395170701aadfab2ed1097a2e34497241ba2fa (diff) | |
download | mitmproxy-403ac82a7d07f08e931aedde4cbe4289b09d60ec.tar.gz mitmproxy-403ac82a7d07f08e931aedde4cbe4289b09d60ec.tar.bz2 mitmproxy-403ac82a7d07f08e931aedde4cbe4289b09d60ec.zip |
netlib: request.path can be None
Diffstat (limited to 'test/netlib')
-rw-r--r-- | test/netlib/http/test_request.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/netlib/http/test_request.py b/test/netlib/http/test_request.py index 5672259e..50ad2d05 100644 --- a/test/netlib/http/test_request.py +++ b/test/netlib/http/test_request.py @@ -41,7 +41,12 @@ class TestRequestCore(object): _test_passthrough_attr(treq(), "port") def test_path(self): - _test_decoded_attr(treq(), "path") + req = treq() + _test_decoded_attr(req, "path") + # path can also be None. + req.path = None + assert req.path is None + assert req.data.path is None def test_host(self): if six.PY2: |