Details
| ID | EmailReputation |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | enhancement |
README
A context script for email entities.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | enhancement |
Inputs
| Argument Name | Description |
|---|---|
| The email address to look up. |
Outputs
There are no outputs for this script.
import demistomock as demisto def test_email_reputation(mocker): """ Given: - The script args. When: - Running email_reputation function. Then: - Validating the outputs as expected. """ from EmailReputation import email_reputation mocker.patch.object(demisto, "args", return_value={"email": "email@email.com"}) execute_command_res = [{"Type": 4, "Contents": "Error", "Brand": "brand"}] execute_mock = mocker.patch.object(demisto, "executeCommand", return_value=execute_command_res) results_mock = mocker.patch.object(demisto, "results") email_reputation() assert execute_mock.call_count == 1 assert "returned an error" in results_mock.call_args[0][0][0]["Contents"]