Beispiel #1
0
 def assert_equals_dates(self, date1, date2, msg):
     date1 = machine_utils.get_date_withot_ms(date1)
     date2 = machine_utils.get_date_withot_ms(date2)
     self.assertEquals(date1, date2, msg=msg)
Beispiel #2
0
 def test_get_date_withot_ms(self):
     date =     datetime(year=2012, month=2, day=23, hour=20, minute=39, second=54, microsecond=3)
     expected = datetime(year=2012, month=2, day=23, hour=20, minute=39, second=54)
     self.assertEquals(machine_utils.get_date_withot_ms(date), expected)