Fixed test.

This commit is contained in:
Antoine Nguyen
2020-02-17 16:45:09 +01:00
parent 5d9ac817b2
commit 9c85cba068
+2 -4
View File
@@ -107,11 +107,9 @@ class LDAPAuthenticationTestCase(LDAPTestCaseMixin, ModoTestCase):
self.client.logout()
self.directbind_mode()
# 1: must fail because usernames of simple users must be email
# addresses
username = "testuser"
with self.assertRaises(TypeError):
self.client.login(username=username, password="test")
self.client.login(username=username, password="test")
self.check_created_user(username + "@example.com")
# 1: must work because usernames of domain admins are not
# always email addresses