Esempio n. 1
0
 def test_timestamp_with_error(self):
     faj = FroniusArchiveJson(error_json)
     dt = dateutil.parser.parse('2017-10-24T10:29:59+02:00')
     self.assertEqual(dt, faj.timestamp())
Esempio n. 2
0
 def test_timestamp_with_regular(self):
     faj = FroniusArchiveJson(archive_json)
     dt = dateutil.parser.parse('2017-10-25T09:17:20+02:00')
     self.assertEqual(dt, faj.timestamp())