Kaydet (Commit) e2908ecb authored tarafından George-Cristian Bîrzan's avatar George-Cristian Bîrzan Kaydeden (comit) Tim Graham

Added more tests for HttpRequest.build_absolute_uri().

üst 36645188
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment