From afab7f1edbd911313a0478d3bdbbdc791ea073ab Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 19 Jan 2017 11:12:26 +0100 Subject: Add a status page --- ishtar_common/tests.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ishtar_common/tests.py') 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) -- cgit v1.2.3