Add unit tests for when CAS_FEDERATE is True

Also fix some unicode related bugs
This commit is contained in:
Valentin Samir
2016-07-03 13:51:00 +02:00
parent fcd906ca78
commit 90daf3d2a0
13 changed files with 749 additions and 144 deletions

View File

@ -171,7 +171,7 @@ class CASFederateAuth(AuthUser):
def attributs(self):
"""return a dict of user attributes"""
if not self.user:
if not self.user: # pragma: no cover (should not happen)
return {}
else:
return self.user.attributs