# HG changeset patch # User David Douard # Date 1464191033 -7200 # Node ID 25f9a76ddf502fdc2eb3fbc4191828abc12e294f # Parent 9e926f2dc84d5dbde90c13a12d97fb5d20820621 [test] add a test to ensure we get an AuthenticationError with ldapfeed when using (correct login, wrong password) credentials diff -r 9e926f2dc84d -r 25f9a76ddf50 server/test/unittest_ldapsource.py --- a/server/test/unittest_ldapsource.py Fri Apr 22 16:16:09 2016 +0200 +++ b/server/test/unittest_ldapsource.py Wed May 25 17:43:53 2016 +0200 @@ -234,6 +234,8 @@ # ensure we won't be logged against self.assertRaises(AuthenticationError, source.authenticate, cnx, 'toto', 'toto') + self.assertRaises(AuthenticationError, + source.authenticate, cnx, 'syt', 'toto') self.assertTrue(source.authenticate(cnx, 'syt', 'syt')) sessionid = self.repo.connect('syt', password='syt') self.assertTrue(sessionid)