Exemple #1
0
    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)
Exemple #2
0
 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"))
Exemple #3
0
 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
Exemple #4
0
 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"))
Exemple #5
0
    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)
Exemple #6
0
 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
Exemple #7
0
 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"))
Exemple #8
0
 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"))