[test] add a test to ensure we get an AuthenticationError with ldapfeed
when using (correct login, wrong password) credentials
--- 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)