aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/netlib/http/test_request.py7
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: