aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--okupy/common/ldap_helpers.py3
-rw-r--r--okupy/tests/unit/test_login.py4
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,