diff options
author | 2013-09-25 15:09:56 +0300 | |
---|---|---|
committer | 2013-09-25 15:09:56 +0300 | |
commit | cf1dbcc7ea610e20c1a90251c9da7119774a80ff (patch) | |
tree | bdbaa37144b2c913549587a6b747ff30a4281bc5 | |
parent | support multiple values (+ planet/universe fields) (diff) | |
download | identity.gentoo.org-cf1dbcc7ea610e20c1a90251c9da7119774a80ff.tar.gz identity.gentoo.org-cf1dbcc7ea610e20c1a90251c9da7119774a80ff.tar.bz2 identity.gentoo.org-cf1dbcc7ea610e20c1a90251c9da7119774a80ff.zip |
fix more pep8 errors
-rw-r--r-- | okupy/common/ldap_helpers.py | 3 | ||||
-rw-r--r-- | okupy/tests/unit/test_login.py | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/okupy/common/ldap_helpers.py b/okupy/common/ldap_helpers.py index 2a5250f..4d872d3 100644 --- a/okupy/common/ldap_helpers.py +++ b/okupy/common/ldap_helpers.py @@ -8,9 +8,6 @@ from okupy import OkupyError from okupy.accounts.models import LDAPUser from okupy.crypto.ciphers import cipher -from django.conf import settings #debug -from django.db import connections - def get_bound_ldapuser(request, password=None, username=None): """ diff --git a/okupy/tests/unit/test_login.py b/okupy/tests/unit/test_login.py index c9948db..07bf089 100644 --- a/okupy/tests/unit/test_login.py +++ b/okupy/tests/unit/test_login.py @@ -149,7 +149,7 @@ class LoginUnitTestsNoLDAP(OkupyTestCase): response = login(request) response.context = RequestContext(request) self.assertMessage(response, - "Can't contact the LDAP server or the database", 40) + "Can't contact the LDAP server or the database", 40) def test_no_ldap_connection_raises_ldaperror_in_login(self): request = set_request(uri='/login', post=vars.LOGIN_WRONG, @@ -157,7 +157,7 @@ class LoginUnitTestsNoLDAP(OkupyTestCase): response = login(request) response.context = RequestContext(request) self.assertMessage(response, - "Can't contact the LDAP server or the database", 40) + "Can't contact the LDAP server or the database", 40) def test_no_ldap_connection_in_logout_sends_notification_mail(self): request = set_request(uri='/login', post=vars.LOGIN_ALICE, |