예제 #1
0
파일: tasks.py 프로젝트: ninoseki/IntelOwl
def googlesf_run(
    analyzer_name,
    job_id,
    observable_name,
    observable_classification,
    additional_config_params,
):
    googlesf.run(
        analyzer_name,
        job_id,
        observable_name,
        observable_classification,
        additional_config_params,
    )
예제 #2
0
 def test_gsf(self, mock_get=None, mock_post=None):
     report = googlesf.run(
         "GoogleSafeBrowsing",
         self.job_id,
         self.observable_name,
         self.observable_classification,
         {},
     )
     self.assertEqual(report.get("success", False), True)
예제 #3
0
 def test_gsf(self):
     report = googlesf.run("GoogleSafeBrowsing", self.job_id,
                           self.observable_name,
                           self.observable_classification, {})
     self.assertEqual(report.get('success', False), True)