예제 #1
0
파일: test_core.py 프로젝트: egdorf/obspy
 def test_isQFile(self):
     """
     Testing Q header file format.
     """
     testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QHD')
     self.assertEqual(isQ(testfile), True)
     testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QBN')
     self.assertEqual(isQ(testfile), False)
     testfile = os.path.join(self.path, 'data', 'TEST_090101_0101.ASC')
     self.assertEqual(isQ(testfile), False)
예제 #2
0
 def test_isQFile(self):
     """
     Testing Q header file format.
     """
     testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QHD')
     self.assertEqual(isQ(testfile), True)
     testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QBN')
     self.assertEqual(isQ(testfile), False)
     testfile = os.path.join(self.path, 'data', 'TEST_090101_0101.ASC')
     self.assertEqual(isQ(testfile), False)