server/test/unittest_storage.py
changeset 8581 ac3cbf55d9fb
parent 8544 3d049071957e
child 8622 db988713459d
--- a/server/test/unittest_storage.py	Fri Oct 05 16:54:22 2012 +0200
+++ b/server/test/unittest_storage.py	Tue Sep 11 12:42:26 2012 +0200
@@ -118,7 +118,7 @@
     def test_bfss_fs_importing_doesnt_touch_path(self):
         self.session.transaction_data['fs_importing'] = True
         filepath = osp.abspath(__file__)
-        f1 = self.session.create_entity('File', data=Binary(filepath),
+        f1 = self.request().create_entity('File', data=Binary(filepath),
                                         data_format=u'text/plain', data_name=u'foo')
         self.assertEqual(self.fspath(f1), filepath)