Example #1
0
 def test_match_file_3_1(self):
     mutefilter = filtering.MatchFilter(self.validList)
     for word in self.unmatchList:
         self.assertFalse(mutefilter.is_match(word))
Example #2
0
 def test_match_file_1_0(self):
     mutefilter = filtering.MatchFilter(self.validStr)
     self.assertTrue(mutefilter.is_match(self.matchList[0]))
Example #3
0
 def test_match_file_2_0(self):
     mutefilter = filtering.MatchFilter(self.validTuple)
     for word in self.matchList:
         self.assertTrue(mutefilter.is_match(word))
Example #4
0
 def test_match_file_0_1(self):
     mutefilter = filtering.MatchFilter(self.repatterns)
     for word in self.unmatchList:
         self.assertFalse(mutefilter.is_match(word))