tests for useradmin, login and logout

- also a note that reversing /admin just does not work
parent be3d5d9a
Pipeline #858 passed with stage
in 1 minute and 13 seconds
......@@ -105,3 +105,27 @@ class UrlsTest(TestCase):
def test_registered(self):
url = reverse('registered')
self.assertEqual(url, '/registered')
# The /admin URL is not tested as it is never resolves in source and generally
# Django yells at you if the admin page breaks
"""
/useradmin - user approval interface
"""
def test_useradmin(self):
url = reverse('useradmin')
self.assertEqual(url, '/useradmin')
"""
/login - login portal
"""
def test_useradmin(self):
url = reverse('go_login')
self.assertEqual(url, '/login')
"""
/logout - logout portal
"""
def test_useradmin(self):
url = reverse('go_logout')
self.assertEqual(url, '/logout')
......@@ -41,7 +41,7 @@ urlpatterns = [
name='registered'),
# /admin - Administrator interface.
url(r'^admin/?', admin.site.urls),
url(r'^admin/?$', admin.site.urls, name='go_admin'),
# /useradmin - user approval interface
url(r'^useradmin/?$', go.views.useradmin, name='useradmin'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment