Exemple #1
0
 def testHitLinesAreFiltered(self):
     inputData = [self.__HIT1, self.__NOHIT1, self.__HIT2, self.__NOHIT2]
     parser = TXTErrorParser(inputData)
     result = parser.locateAllTpmData()
     [
         self.assertTrue(hit in result, "Couldn't find %s" % hit)
         for hit in [self.__HIT1, self.__HIT2]
     ]
Exemple #2
0
 def testFilteringForHitLinesReturnsAnEmptyArrayForAnEmptyLog(self):
     parser = TXTErrorParser([])
     self.assertEqual([], parser.locateAllTpmData())
Exemple #3
0
 def testFilteringForHitLinesReturnsAnEmptyArrayForAnEmptyLog(self):
     parser = TXTErrorParser([])
     self.assertEqual([], parser.locateAllTpmData())
Exemple #4
0
 def testHitLinesAreFiltered(self):
     inputData = [self.__HIT1, self.__NOHIT1, self.__HIT2, self.__NOHIT2]
     parser = TXTErrorParser(inputData)
     result = parser.locateAllTpmData()
     [self.assertTrue(hit in result, "Couldn't find %s" % hit)
      for hit in [self.__HIT1, self.__HIT2]]