Commit 3dcf4a73 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Update tests

parent bab90928
......@@ -333,7 +333,7 @@ class ShibbolethTests(TestCase):
eppn="existingeppn", cn="Kostas Papadimitriou")
r = client.get("/im/login/shibboleth?", follow=True)
self.assertContains(r, "this account is already assigned")
self.assertContains(r, "is already in use")
class TestLocal(TestCase):
......@@ -806,7 +806,7 @@ class TestAuthProviderViews(TestCase):
self.assertContains(r, 'Your request is missing a unique token')
r = cl_olduser.get('/im/login/shibboleth?', follow=True)
self.assertContains(r, 'is already assigned to another user')
self.assertContains(r, 'already in use')
r = cl_olduser.get('/im/login/shibboleth?', follow=True)
self.assertContains(r, 'Academic login enabled for this account')
......@@ -841,6 +841,9 @@ class TestAuthProvidersAPI(TestCase):
Test auth_providers module API
def tearDown(self):
@im_settings(IM_MODULES=['local', 'shibboleth'])
def test_create(self):
user = AstakosUser.objects.create(email="")
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