--- a/cubicweb/server/test/unittest_ldapsource.py Fri Sep 30 17:39:17 2016 +0200
+++ b/cubicweb/server/test/unittest_ldapsource.py Thu Oct 06 12:15:50 2016 +0200
@@ -284,8 +284,6 @@
self.assertEqual(len(rset), 1)
e = rset.get_entity(0, 0)
self.assertEqual(e.eid, eid)
- self.assertEqual(e.cw_metainformation(), {'type': 'CWUser',
- 'extid': None})
self.assertEqual(e.cw_source[0].name, 'system')
self.assertTrue(e.creation_date)
self.assertTrue(e.modification_date)
@@ -294,11 +292,10 @@
self.assertEqual(len(rset), 1)
self.assertTrue(self.repo.system_source.authenticate(cnx, 'syt', password='syt'))
# make sure the pull from ldap have not "reverted" user as a ldap-feed user
- self.assertEqual(e.cw_metainformation(), {'type': 'CWUser',
- 'extid': None})
# and that the password stored in the system source is not empty or so
user = cnx.execute('CWUser U WHERE U login "syt"').get_entity(0, 0)
user.cw_clear_all_caches()
+ self.assertEqual(user.cw_source[0].name, 'system')
cu = cnx.system_sql("SELECT cw_upassword FROM cw_cwuser WHERE cw_login='syt';")
pwd = cu.fetchall()[0][0]
self.assertIsNotNone(pwd)