Exemple #1
0
 def test_isTSPAIRFile(self):
     """
     Testing TSPAIR file format.
     """
     testfile = os.path.join(self.path, 'data', 'tspair.ascii')
     self.assertEqual(isTSPAIR(testfile), True)
     testfile = os.path.join(self.path, 'data', 'tspair_2_traces.ascii')
     self.assertEqual(isTSPAIR(testfile), True)
     testfile = os.path.join(self.path, 'data', 'slist.ascii')
     self.assertEqual(isTSPAIR(testfile), False)
     # not existing file should fail
     testfile = os.path.join(self.path, 'data', 'xyz')
     self.assertEqual(isTSPAIR(testfile), False)
Exemple #2
0
 def test_isTSPAIRFile(self):
     """
     Testing TSPAIR file format.
     """
     testfile = os.path.join(self.path, 'data', 'tspair.ascii')
     self.assertEqual(isTSPAIR(testfile), True)
     testfile = os.path.join(self.path, 'data', 'tspair_2_traces.ascii')
     self.assertEqual(isTSPAIR(testfile), True)
     testfile = os.path.join(self.path, 'data', 'slist.ascii')
     self.assertEqual(isTSPAIR(testfile), False)
     # not existing file should fail
     testfile = os.path.join(self.path, 'data', 'xyz')
     self.assertEqual(isTSPAIR(testfile), False)