Beispiel #1
0
    def test_check_time_uses_belgium_time_zone(self):
        self.navigate(data.TIME_URL)
        from datetime import datetime, timedelta
        time_value = datetime.now().strftime("%I:%M:%S")
        LIB.euh_set_time_value("From",time_value)
        self.assertRaises(ValidationFailedError,LIB.euh_check_time_value,"From", "<<current min>>")

        belgium_time_value = (datetime.utcnow() + timedelta(hours=1)).strftime("%I:%M:%S")
        LIB.euh_set_time_value("From",belgium_time_value)
        LIB.euh_check_time_value("From", "<<current min>>")
Beispiel #2
0
 def test_set_and_check_time_value(self):
     self.navigate(data.TIME_URL)
     LIB.euh_set_time_value("From","10:00")
     LIB.euh_check_time_value("From","10:00")