# HG changeset patch # User Sylvain Thénault # Date 1274447096 -7200 # Node ID 50b887d25233419d46c20ce715d36b03b60fbe6b # Parent cb14af012a963f88e0dd1c7b66f75d333799009d [test] no more Image type w/ cw 3.9 diff -r cb14af012a96 -r 50b887d25233 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'))