Complete unit test.

see #596
This commit is contained in:
Antoine Nguyen
2015-11-16 15:29:19 +01:00
parent 63b7fabb08
commit 4f48bc5ed0
+8
View File
@@ -26,6 +26,14 @@ class AuthenticationTestCase(ModoTestCase):
self.assertEqual(response.status_code, 302)
self.assertTrue(response.url.endswith(reverse("core:user_index")))
response = self.clt.post(reverse("core:logout"), {})
self.assertEqual(response.status_code, 302)
data = {"username": "admin", "password": "password"}
response = self.clt.post(reverse("core:login"), data)
self.assertEqual(response.status_code, 302)
self.assertTrue(response.url.endswith(reverse("admin:domain_list")))
class ProfileTestCase(ModoTestCase):