server/test/unittest_storage.py
changeset 8622 db988713459d
parent 8581 ac3cbf55d9fb
child 8694 d901c36bcfce
--- a/server/test/unittest_storage.py	Fri Nov 23 17:12:58 2012 +0100
+++ b/server/test/unittest_storage.py	Tue Nov 27 12:36:33 2012 +0100
@@ -196,8 +196,11 @@
         filepath = osp.abspath(__file__)
         f1 = self.session.create_entity('File', data=Binary(filepath),
                                         data_format=u'text/plain', data_name=u'foo')
-        self.assertEqual(f1.data.getvalue(), file(filepath).read(),
-                          'files content differ')
+        cw_value = f1.data.getvalue()
+        fs_value = file(filepath).read()
+        if cw_value != fs_value:
+            self.fail('cw value %r is different from file content' % cw_value)
+
 
     @tag('update')
     def test_bfss_update_with_existing_data(self):