nicer test
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 15:26:59 +0200
changeset 3436 1e927f7ccb23
parent 3435 84036ad2c82d
child 3438 207dac2b03d4
nicer test
server/test/unittest_ldapuser.py
--- a/server/test/unittest_ldapuser.py	Wed Sep 23 15:26:47 2009 +0200
+++ b/server/test/unittest_ldapuser.py	Wed Sep 23 15:26:59 2009 +0200
@@ -247,7 +247,9 @@
 
     def test_cd_restriction(self):
         rset = self.sexecute('CWUser 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
+        # admin/anon but no ldap user since it doesn't support creation_date
+        self.assertEquals(sorted(e.login for e in rset.entities()),
+                          ['admin', 'anon'])
 
     def test_union(self):
         afeids = self.sexecute('State X')