def shodan_run( analyzer_name, job_id, observable_name, observable_classification, additional_config_params, ): shodan.run( analyzer_name, job_id, observable_name, observable_classification, additional_config_params, )
def test_shodan(self, mock_get=None, mock_post=None): report = shodan.run( "Shodan", self.job_id, self.observable_name, self.observable_classification, {}, ) self.assertEqual(report.get("success", False), True)
def test_shodan(self): report = shodan.run("Shodan", self.job_id, self.observable_name, self.observable_classification, {}) self.assertEqual(report.get('success', False), True)