fix ldapuser test stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 31 Aug 2012 18:11:24 +0200
branchstable
changeset 8524 d2a6163ce0d5
parent 8523 410cbb14f0f5
child 8526 ed0fbbf507bb
fix ldapuser test
server/test/unittest_ldapuser.py
--- a/server/test/unittest_ldapuser.py	Fri Aug 31 16:50:28 2012 +0200
+++ b/server/test/unittest_ldapuser.py	Fri Aug 31 18:11:24 2012 +0200
@@ -138,6 +138,8 @@
                          'deactivated')
         # test reactivating the user isn't enough to authenticate, as the native source
         # refuse to authenticate user from other sources
+        os.system(deletecmd)
+        self._pull()
         user = self.execute('CWUser U WHERE U login "syt"').get_entity(0, 0)
         user.cw_adapt_to('IWorkflowable').fire_transition('activate')
         self.commit()