summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-08-12 18:56:04 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2018-08-12 19:54:58 +0200
commit8dcc8c0a70fcec24a8e423cc3ac3224530653829 (patch)
tree9333dd832c249eba499bc80d480c5bf68dd23e5b /mirrors
parent090ca11d527bb8257f0473eb7aca825c68d811bc (diff)
downloadarchweb-8dcc8c0a70fcec24a8e423cc3ac3224530653829.tar.gz
archweb-8dcc8c0a70fcec24a8e423cc3ac3224530653829.zip
mirrors: Add a test for generating mirrorlist with status
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/tests/test_mirrorlist.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mirrors/tests/test_mirrorlist.py b/mirrors/tests/test_mirrorlist.py
index 0fe6815e..ab4373e8 100644
--- a/mirrors/tests/test_mirrorlist.py
+++ b/mirrors/tests/test_mirrorlist.py
@@ -64,3 +64,7 @@ class MirrorListTest(TestCase):
self.assertNotIn(self.mirror_url.hostname, response.content)
jp_mirror_url.delete()
+
+ def test_mirrorlist_status(self):
+ response = self.client.get('/mirrorlist/?country=all&use_mirror_status=on')
+ self.assertEqual(response.status_code, 200)