def setUp(self): params = { "source": "test", "is_sample": True, "file_mimetype": "application/x-dosexec", "force_privacy": False, "analyzers_requested": ["test"], } filename = "file.exe" test_job = _generate_test_job_with_file(params, filename) self.job_id = test_job.id self.filepath, self.filename = utils.get_filepath_filename(self.job_id) self.md5 = test_job.md5
def setUp(self): params = { "source": "test", "is_sample": True, "file_mimetype": "application/vnd.ms-excel", "force_privacy": False, "analyzers_requested": ["test"], } filename = "document.xls" test_job = _generate_test_job_with_file(params, filename) self.job_id = test_job.id self.filepath, self.filename = utils.get_filepath_filename(self.job_id) self.runtime_configuration = test_job.runtime_configuration self.md5 = test_job.md5
def setUp(self): params = { "source": "test", "is_sample": True, "file_mimetype": "application/msword", "force_privacy": False, "analyzers_requested": ["test"], "runtime_configuration": { "Doc_Info_Experimental": { "additional_passwords_to_check": ["testpassword"] } }, } filename = "document.doc" test_job = _generate_test_job_with_file(params, filename) self.job_id = test_job.id self.filepath, self.filename = utils.get_filepath_filename(self.job_id) self.runtime_configuration = test_job.runtime_configuration self.md5 = test_job.md5