summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/view_tests/tests/test_static.py5
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):