Exemplo n.º 1
0
 def testWxTimeAlertDataConversionGivesAlertString(self):
     timeline = XmlTimeline(None, load=False, use_wide_date_range=True)
     alert = (wx.DateTimeFromDMY(30, 8, 2010, 0, 0, 0), "Hoho")
     alert_text = timeline.alert_string(alert)
     self.assertEqual("2010-09-30 00:00:00;Hoho", alert_text)
Exemplo n.º 2
0
 def testWxTimeAlertDataConversionGivesAlertString(self):
     timeline = XmlTimeline(None, load=False, use_wide_date_range=True)
     alert = (wx.DateTimeFromDMY(30, 8, 2010, 0, 0, 0), "Hoho")
     alert_text = timeline.alert_string(alert)
     self.assertEqual("2010-09-30 00:00:00;Hoho", alert_text)
Exemplo n.º 3
0
 def testAlertDataConversionGivesAlertString(self):
     timeline = XmlTimeline(None, load=False, use_wide_date_range=False)
     alert = (datetime(2010, 8, 31, 0, 0, 0), "Hoho")
     alert_text = timeline.alert_string(alert)
     self.assertEqual("2010-8-31 0:0:0;Hoho", alert_text)
Exemplo n.º 4
0
 def testAlertDataConversionGivesAlertString(self):
     timeline = XmlTimeline(None, load=False, use_wide_date_range=False)
     alert = (datetime(2010, 8, 31, 0, 0, 0), "Hoho")
     alert_text = timeline.alert_string(alert)
     self.assertEqual("2010-8-31 0:0:0;Hoho", alert_text)