def test_urlscan_submit_result(self, *args): report = urlscan.UrlScan( "UrlScan_Submit_Result", self.job_id, self.observable_name, self.observable_classification, {"urlscan_analysis": "submit_result"}, ).start() self.assertEqual(report.get("success", False), True)
def test_urlscan_search(self, *args): if self.observable_classification == "url": self.observable_name = "https://www.honeynet.org/" report = urlscan.UrlScan( "UrlScan_Search", self.job_id, self.observable_name, self.observable_classification, {"urlscan_analysis": "search"}, ).start() self.assertEqual(report.get("success", False), True)