diff -r 3ec0a7bd87ae -r 0928daea04e9 server/test/unittest_ldapuser.py --- a/server/test/unittest_ldapuser.py Thu Feb 26 13:12:39 2009 +0100 +++ b/server/test/unittest_ldapuser.py Thu Feb 26 13:31:13 2009 +0100 @@ -33,8 +33,8 @@ repo, cnx = init_test_database('sqlite', config=config) class LDAPUserSourceTC(RepositoryBasedTC): - repo = repo - + repo, cnx = repo, cnx + def patch_authenticate(self): self._orig_authenticate = LDAPUserSource.authenticate LDAPUserSource.authenticate = nopwd_authenticate @@ -242,7 +242,10 @@ ['users', 'cochon'], ['users', 'syt']]) - + def test_cd_restriction(self): + rset = self.execute('EUser X WHERE X creation_date > "2009-02-01"') + self.assertEquals(len(rset), 2) # admin/anon but no ldap user since it doesn't support creation_date + def test_union(self): afeids = self.execute('State X') ueids = self.execute('EUser X')