[test] no more Image type w/ cw 3.9
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 May 2010 15:04:56 +0200
changeset 5570 50b887d25233
parent 5569 cb14af012a96
child 5571 5d024bf9424b
[test] no more Image type w/ cw 3.9
web/test/unittest_viewselector.py
--- a/web/test/unittest_viewselector.py	Fri May 21 15:04:29 2010 +0200
+++ b/web/test/unittest_viewselector.py	Fri May 21 15:04:56 2010 +0200
@@ -408,19 +408,19 @@
                               tableview.TableView)
 
     def test_interface_selector(self):
-        image = self.request().create_entity('Image', data_name=u'bim.png', data=Binary('bim'))
+        image = self.request().create_entity('File', data_name=u'bim.png', data=Binary('bim'))
         # image primary view priority
         req = self.request()
-        rset = req.execute('Image X WHERE X data_name "bim.png"')
+        rset = req.execute('File X WHERE X data_name "bim.png"')
         self.assertIsInstance(self.vreg['views'].select('primary', req, rset=rset),
                               idownloadable.IDownloadablePrimaryView)
 
 
     def test_score_entity_selector(self):
-        image = self.request().create_entity('Image', data_name=u'bim.png', data=Binary('bim'))
+        image = self.request().create_entity('File', data_name=u'bim.png', data=Binary('bim'))
         # image primary view priority
         req = self.request()
-        rset = req.execute('Image X WHERE X data_name "bim.png"')
+        rset = req.execute('File X WHERE X data_name "bim.png"')
         self.assertIsInstance(self.vreg['views'].select('image', req, rset=rset),
                               idownloadable.ImageView)
         fileobj = self.request().create_entity('File', data_name=u'bim.txt', data=Binary('bim'))