diff options
| author | George-Cristian Bîrzan <g.birzan@mdg.bg> | 2018-01-10 10:59:10 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-01-10 11:32:19 -0500 |
| commit | e2908ecb3e20a629be801ddb826c474f7e7023ea (patch) | |
| tree | 0ef780191f746bfc6ebe8f1f3b0caa7da81c2a24 | |
| parent | 366451880abc7f4d3c9b40e5640e1b75fe7b14dc (diff) | |
Added more tests for HttpRequest.build_absolute_uri().
| -rw-r--r-- | tests/requests/tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 9df81230a0..e1c25a2f6d 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -797,8 +797,11 @@ class BuildAbsoluteURITests(SimpleTestCase): ('http://example.com/?foo=bar', 'http://example.com/?foo=bar'), # A schema-relative URL ('//example.com/?foo=bar', 'http://example.com/?foo=bar'), - # A relative URL + # Relative URLs ('/foo/bar/', 'http://testserver/foo/bar/'), + ('/foo/./bar/', 'http://testserver/foo/bar/'), + ('/foo/../bar/', 'http://testserver/bar/'), + ('///foo/bar/', 'http://testserver/foo/bar/'), ) for location, expected_url in tests: with self.subTest(location=location): |
