test/unittest_entity.py
changeset 10529 747eded13c68
parent 10467 73ea636a5562
child 10704 73367a56ee41
--- a/test/unittest_entity.py	Thu Jul 09 16:55:28 2015 +0200
+++ b/test/unittest_entity.py	Thu Jul 09 11:26:09 2015 +0200
@@ -644,7 +644,7 @@
 
     def test_printable_value_bytes(self):
         with self.admin_access.web_request() as req:
-            e = req.create_entity('File', data=Binary('lambda x: 1'), data_format=u'text/x-python',
+            e = req.create_entity('FakeFile', data=Binary('lambda x: 1'), data_format=u'text/x-python',
                                   data_encoding=u'ascii', data_name=u'toto.py')
             from cubicweb import mttransforms
             if mttransforms.HAS_PYGMENTS_TRANSFORMS:
@@ -663,7 +663,7 @@
     <span style="color: #C00000;">lambda</span> <span style="color: #000000;">x</span><span style="color: #0000C0;">:</span> <span style="color: #0080C0;">1</span>
 </pre>''')
 
-            e = req.create_entity('File', data=Binary('*héhéhé*'), data_format=u'text/rest',
+            e = req.create_entity('FakeFile', data=Binary('*héhéhé*'), data_format=u'text/rest',
                                 data_encoding=u'utf-8', data_name=u'toto.txt')
             self.assertEqual(e.printable_value('data'),
                               u'<p><em>héhéhé</em></p>')
@@ -714,7 +714,7 @@
 
     def test_fulltextindex(self):
         with self.admin_access.web_request() as req:
-            e = self.vreg['etypes'].etype_class('File')(req)
+            e = self.vreg['etypes'].etype_class('FakeFile')(req)
             e.cw_attr_cache['description'] = 'du <em>html</em>'
             e.cw_attr_cache['description_format'] = 'text/html'
             e.cw_attr_cache['data'] = Binary('some <em>data</em>')