web/test/unittest_views_baseviews.py
branchstable
changeset 3771 234b003f0fe0
parent 2650 18aec79ec3a3
child 3777 3ef8cdb5fb1c
child 4212 ab6573088b4a
--- a/web/test/unittest_views_baseviews.py	Wed Oct 21 13:52:16 2009 +0200
+++ b/web/test/unittest_views_baseviews.py	Wed Oct 21 14:31:15 2009 +0200
@@ -99,7 +99,7 @@
 
     def test_sortvalue(self):
         e, _, view = self._prepare_entity()
-        expected = ['<toto>', 'loo"ong blabla'[:10], e.creation_date.strftime('%Y-%m-%d %H:%M')]
+        expected = ['<toto>', 'loo"ong blabla'[:10], e.creation_date.strftime('%Y/%m/%d %H:%M:%S')]
         got = [loadjson(view.sortvalue(0, i)) for i in xrange(3)]
         self.assertListEqual(got, expected)
         # XXX sqlite does not handle Interval correctly
@@ -111,7 +111,7 @@
         labels = view.columns_labels()
         table = TableWidget(view)
         table.columns = view.get_columns(labels, [1, 2], None, None, None, None, 0)
-        expected = ['loo"ong blabla'[:10], e.creation_date.strftime('%Y-%m-%d %H:%M')]
+        expected = ['loo"ong blabla'[:10], e.creation_date.strftime('%Y/%m/%d %H:%M:%S')]
         got = [loadjson(value) for _, value in table.itercols(0)]
         self.assertListEqual(got, expected)