summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-19 11:12:26 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-19 11:12:26 +0100
commitafab7f1edbd911313a0478d3bdbbdc791ea073ab (patch)
tree34638cd8e0b11c4f57ea9ed4ccfb3a19551be143 /ishtar_common/tests.py
parentbb89298db7f52c319995ec738648c6ffbbb41353 (diff)
downloadIshtar-afab7f1edbd911313a0478d3bdbbdc791ea073ab.tar.bz2
Ishtar-afab7f1edbd911313a0478d3bdbbdc791ea073ab.zip
Add a status page
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 6db425cab..77247d6a0 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -440,3 +440,16 @@ class IshtarSiteProfileTest(TestCase):
p.raw_name = ''
p.save()
self.assertEqual(p.raw_name, u"tegada plouf")
+
+
+class IshtarBasicTest(TestCase):
+ def setUp(self):
+ password = 'mypassword'
+ my_admin = User.objects.create_superuser(
+ 'myuser', 'myemail@test.com', password)
+ self.client = Client()
+ self.client.login(username=my_admin.username, password=password)
+
+ def test_status(self):
+ response = self.client.get(reverse('status'))
+ self.assertEqual(response.status_code, 200)