def testhash4(self): definitions["jquery"]["extractors"]["hashes"][hash] = "1.12.1" result = retire.scan_file_content(content) self.assertFalse(retire.is_vulnerable(result))
def test6(self): result = retire.scan_file_content("a = 1; /*! jQuery v1.4 asdasd ") self.assertTrue(retire.is_vulnerable(result))
def testhash1(self): global content, hash definitions["jquery"]["extractors"]["hashes"][hash] = "1.8.1" result = retire.scan_file_content(content) self.assertTrue(retire.is_vulnerable(result))
def test4(self): result = retire.scan_file_content("/*! jQuery v1.12.1 asdasd ") self.assertFalse(retire.is_vulnerable(result))
def testhash4(self): definitions["jquery"]["extractors"]["hashes"][hash] = "1.12.1" result = retire.scan_file_content(content) self.assertFalse(retire.is_vulnerable(result))
def testhash1(self): global content, hash definitions["jquery"]["extractors"]["hashes"][hash] = "1.8.1" result = retire.scan_file_content(content) self.assertTrue(retire.is_vulnerable(result))
def test6(self): result = retire.scan_file_content("a = 1; /*! jQuery v1.4 asdasd ") self.assertTrue(retire.is_vulnerable(result))
def test4(self): result = retire.scan_file_content("/*! jQuery v1.12.1 asdasd ") self.assertFalse(retire.is_vulnerable(result))