Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)