Ejemplo n.º 1
0
 def test_gps_from_string(self):
     for date, timestamp, leapseconds in self.combinations:
         self.assertEqual(clock.gps_from_string(date),
                          timestamp + leapseconds)
Ejemplo n.º 2
0
 def test_gps_from_string(self):
     for date, timestamp, leapseconds in self.combinations:
         self.assertEqual(clock.gps_from_string(date), timestamp + leapseconds)
Ejemplo n.º 3
0
 def test_utc_to_gps(self):
     for date, _, _ in self.combinations:
         self.assertEqual(clock.utc_to_gps(clock.utc_from_string(date)),
                          clock.gps_from_string(date))
Ejemplo n.º 4
0
 def test_utc_to_gps(self):
     for date, _, _ in self.combinations:
         self.assertEqual(clock.utc_to_gps(clock.utc_from_string(date)),
                          clock.gps_from_string(date))