def test_getStartAndEndTime(self): """ Tests getting the start- and endtime of a file. The values are compared with the results of reading the full files. """ mseed_filenames = ['BW.BGLD.__.EHE.D.2008.001.first_10_records', 'test.mseed', 'timingquality.mseed'] for _i in mseed_filenames: filename = os.path.join(self.path, 'data', _i) # Get the start- and end time. (start, end) = util.getStartAndEndTime(filename) # Parse the whole file. stream = readMSEED(filename) self.assertEqual(start, stream[0].stats.starttime) self.assertEqual(end, stream[0].stats.endtime)
def test_getStartAndEndTime(self): """ Tests getting the start- and endtime of a file. The values are compared with the results of reading the full files. """ mseed_filenames = [ 'BW.BGLD.__.EHE.D.2008.001.first_10_records', 'test.mseed', 'timingquality.mseed' ] for _i in mseed_filenames: filename = os.path.join(self.path, 'data', _i) # Get the start- and end time. (start, end) = util.getStartAndEndTime(filename) # Parse the whole file. stream = readMSEED(filename) self.assertEqual(start, stream[0].stats.starttime) self.assertEqual(end, stream[0].stats.endtime)