def test_result_is_expected_time(self): expected = datetime.time(14, 3, 12) self.assertEqual(pyf1data.parse_as_first_lap_time("14:03:12"), expected)
def test_driver2_has_lap_time(self): race = parse_as_race(self.data) self.assertEqual( race.of(self.driver2).first_lap_time, pyf1data.parse_as_first_lap_time("15:23:00"))
def read_first_lap_time(self, line): first_lap_time = pyf1data.parse_as_first_lap_time(line) if first_lap_time: self.drivers_race[ self.driver_index].first_lap_time = first_lap_time return True
def test_ricciardos_race_has_first_lap_time(self): race = parse_as_race(self.data) self.assertEqual( race.of(self.driver1).first_lap_time, pyf1data.parse_as_first_lap_time("14:04:36"))
def read_first_lap_time(self, line): first_lap_time = pyf1data.parse_as_first_lap_time(line) if first_lap_time: self.drivers_race[self.driver_index].first_lap_time = first_lap_time return True
def test_driver2_has_lap_time(self): race = parse_as_race(self.data) self.assertEqual(race.of(self.driver2).first_lap_time, pyf1data.parse_as_first_lap_time("15:23:00"))
def test_ricciardos_race_has_first_lap_time(self): race = parse_as_race(self.data) self.assertEqual(race.of(self.driver1).first_lap_time, pyf1data.parse_as_first_lap_time("14:04:36"))