# HG changeset patch # User Adrien Di Mascio # Date 1234969149 -3600 # Node ID e3cabbdd172a33f45175fc644f6527212e56b7ef # Parent a95e7097924a29ff4a06d4727023828dc8ba1e1c fix unittest_widgets.py: remove stupid (copy/paste) now().strftime call diff -r a95e7097924a -r e3cabbdd172a web/test/unittest_widgets.py --- a/web/test/unittest_widgets.py Wed Feb 18 15:58:35 2009 +0100 +++ b/web/test/unittest_widgets.py Wed Feb 18 15:59:09 2009 +0100 @@ -221,7 +221,7 @@ def test_float_widget(self): w = self.get_widget('Personne', 'salary', 'Float') self.assertEquals(w.name, 'salary') - format = now().strftime(self.vreg.property_value('ui.float-format')) + format = self.vreg.property_value('ui.float-format') self.assertEquals(w.render_example(self.request()), format % 1.23) self.assertDictEquals(w.attrs, {'accesskey': 's', 'maxlength': 15, 'size': 5}) entity = self.etype_instance('Personne') @@ -236,7 +236,7 @@ def test_float_widget_previous_value(self): w = self.get_widget('Personne', 'salary', 'Float') self.assertEquals(w.name, 'salary') - format = now().strftime(self.vreg.property_value('ui.float-format')) + format = self.vreg.property_value('ui.float-format') self.assertEquals(w.render_example(self.request()), format % 1.23) self.assertDictEquals(w.attrs, {'accesskey': 's', 'maxlength': 15, 'size': 5}) req = self.request() @@ -345,7 +345,7 @@ def test_nonregr_float_widget_with_none(self): w = self.get_widget('Personne', 'salary', 'Float') self.assertEquals(w.name, 'salary') - format = now().strftime(self.vreg.property_value('ui.float-format')) + format = self.vreg.property_value('ui.float-format') self.assertEquals(w.render_example(self.request()), format % 1.23) self.assertDictEquals(w.attrs, {'accesskey': 's', 'maxlength': 15, 'size': 5}) req = self.request()