diff options
| author | Claude Paroz <claude@2xlibre.net> | 2018-07-23 18:32:46 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2018-07-24 09:32:33 +0200 |
| commit | 2a74ceb5f371c1083bfc9b95e093543ba09eb20f (patch) | |
| tree | 76905a38cb1b600f2aeaecf0ba038b7d40e05dcb /tests | |
| parent | cdcf4164bec9dc09465424d7042c3f9d4f0f1fdc (diff) | |
Fixed #24336 -- Made django.conf.urls.static() ignore all absolute URLs
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/view_tests/tests/test_static.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/view_tests/tests/test_static.py b/tests/view_tests/tests/test_static.py index 03cb19ea02..3154ce1703 100644 --- a/tests/view_tests/tests/test_static.py +++ b/tests/view_tests/tests/test_static.py @@ -153,8 +153,9 @@ class StaticHelperTest(StaticTests): static('') def test_special_prefix(self): - """No URLs are served if prefix contains '://'.""" - self.assertEqual(static('http://'), []) + """No URLs are served if prefix contains a netloc part.""" + self.assertEqual(static('http://example.org'), []) + self.assertEqual(static('//example.org'), []) class StaticUtilsTests(unittest.TestCase): |
