web/test/unittest_application.py
changeset 9642 9a42eaeea263
parent 9641 4147cc32371d
child 9674 96549de9dd70
--- a/web/test/unittest_application.py	Wed Apr 02 15:51:01 2014 +0200
+++ b/web/test/unittest_application.py	Wed Apr 02 12:44:57 2014 +0200
@@ -423,13 +423,13 @@
         with self.admin_access.web_request() as req:
             self.assertEqual(self.admlogin, req.session.user.login)
             # admin should see anon + admin
-            self.assertEqual(2, len(list(req.find_entities('CWUser'))))
+            self.assertEqual(2, len(list(req.find('CWUser'))))
             with anonymized_request(req):
                 self.assertEqual('anon', req.session.login, 'anon')
                 # anon should only see anon user
-                self.assertEqual(1, len(list(req.find_entities('CWUser'))))
+                self.assertEqual(1, len(list(req.find('CWUser'))))
             self.assertEqual(self.admlogin, req.session.login)
-            self.assertEqual(2, len(list(req.find_entities('CWUser'))))
+            self.assertEqual(2, len(list(req.find('CWUser'))))
 
     def test_non_regr_optional_first_var(self):
         with self.admin_access.web_request() as req: