[ldap] remove useless hack in unittest_ldapuser.py stable
authorDavid Douard <david.douard@logilab.fr>
Tue, 25 Jan 2011 10:01:19 +0100
branchstable
changeset 6888 c02e5ba43366
parent 6887 72d7feeb071e
child 6889 37668bf302f5
[ldap] remove useless hack in unittest_ldapuser.py
server/test/unittest_ldapuser.py
--- a/server/test/unittest_ldapuser.py	Tue Jan 25 09:52:49 2011 +0100
+++ b/server/test/unittest_ldapuser.py	Tue Jan 25 10:01:19 2011 +0100
@@ -83,13 +83,6 @@
     cnx.request().create_entity('CWSource', name=u'ldapuser', type=u'ldapuser',
                                 config=CONFIG)
     cnx.commit()
-    # XXX: need this first query else we get 'database is locked' from
-    # sqlite since it doesn't support multiple connections on the same
-    # database
-    # so doing, ldap inserted users don't get removed between each test
-    rset = cnx.cursor().execute('CWUser X')
-    # check we get some users from ldap
-    assert len(rset) > 1
 
 def create_slapd_configuration(config):
     global slapd_process, CONFIG