- Timestamp:
- 17 Apr 2012, 23:23:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_datetimewidget.py
r8198 r8199 52 52 self.assertTrue(content.my_dt.tzinfo is pytz.utc) 53 53 return 54 55 def test_export_values(self): 56 # make sure we understand values as exported 57 content = Content() 58 request = TestRequest() 59 60 request.form['form.my_dt'] = u'2012-01-02 12:10:19+00:00' 61 request.form['form.actions.apply'] = u'' 62 SampleForm(content, request)() 63 64 self.assertEqual( content.my_dt, datetime.datetime( 65 2012, 1, 2, 12, 10, 19, tzinfo=pytz.utc)) 66 self.assertTrue(content.my_dt.tzinfo is pytz.utc) 67 return
Note: See TracChangeset for help on using the changeset viewer.