Increase coverage.

see #891
This commit is contained in:
Antoine Nguyen
2016-09-09 15:51:49 +02:00
parent 01257e879b
commit 10c80ad101
+7
View File
@@ -74,6 +74,13 @@ class DashboardTestCase(ModoTestCase):
response = self.client.get(url)
self.assertEqual(response.status_code, 302)
def test_root_dispatch(self):
"""Check root dispatching."""
url = reverse("core:root")
response = self.client.get(url)
self.assertEqual(response.status_code, 302)
self.assertTrue(response.url.endswith(reverse("core:dashboard")))
class LDAPTestCaseMixin(object):
"""Set of methods used to test LDAP features."""