def check(self, content): """ Check the string returned by the fuzzer (content) against the list of strings indicating vulnerability. """ return parse_match(content, "script", self.vuln_string)
def test_parse_match(self): for str_in in self.parse_match_true: self.assertTrue(match.parse_match(str_in, self.tag, self.term)) for str_in in self.parse_match_false: self.assertFalse(match.parse_match(str_in, self.tag, self.term))