aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina <fabian.gallina@canonical.com>2014-04-23 11:30:47 -0300
committerFabián Ezequiel Gallina <fabian.gallina@canonical.com>2014-04-23 11:30:47 -0300
commitff81e2ebba2a4f7f492427d8901a091d100a5f61 (patch)
treef9c69fdde7b5c10c9a9f035480590e026a9e7d95
parent2c3de8ba3103dd931bcafe5bd89dcd1ddc6d93dd (diff)
Add assertion to tests for clean OPENID_LAUNCHPAD_STAFF_TEAMS setting
-rw-r--r--django_openid_auth/tests/test_views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django_openid_auth/tests/test_views.py b/django_openid_auth/tests/test_views.py
index 239e08e..2660be8 100644
--- a/django_openid_auth/tests/test_views.py
+++ b/django_openid_auth/tests/test_views.py
@@ -1357,6 +1357,7 @@ class RelyingPartyTests(TestCase):
self.assertTrue(group3 not in user.groups.all())
def test_login_teams_staff_not_defined(self):
+ assert getattr(settings, 'OPENID_LAUNCHPAD_STAFF_TEAMS', None) is None
user = User.objects.create_user('testuser', 'someone@example.com')
user.is_staff = True
user.save()