def test_is_q_file(self): """ Testing Q header file format. """ testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QHD') self.assertEqual(_is_q(testfile), True) testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QBN') self.assertEqual(_is_q(testfile), False) testfile = os.path.join(self.path, 'data', 'TEST_090101_0101.ASC') self.assertEqual(_is_q(testfile), False)
def test_is_qFile(self): """ Testing Q header file format. """ testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QHD') self.assertEqual(_is_q(testfile), True) testfile = os.path.join(self.path, 'data', 'QFILE-TEST-SUN.QBN') self.assertEqual(_is_q(testfile), False) testfile = os.path.join(self.path, 'data', 'TEST_090101_0101.ASC') self.assertEqual(_is_q(testfile), False)