[web/test] avoid deprecation warnings from find_entities()
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 02 Apr 2014 12:44:57 +0200
changeset 9642 9a42eaeea263
parent 9641 4147cc32371d
child 9643 421604863753
[web/test] avoid deprecation warnings from find_entities()
web/test/unittest_application.py
--- 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: