mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Add test for when indicator is not found
This commit is contained in:
@@ -104,6 +104,13 @@ class TestVirusTotalMethods(unittest.TestCase):
|
||||
self.assertEqual(results["summary"], "harmless")
|
||||
self.assertEqual(results["status"], "ok")
|
||||
|
||||
def test_prepareResults_indicator_not_Found(self):
|
||||
raw = {"error": "Indicator not found."}
|
||||
results = pulsedive.prepareResults(raw)
|
||||
self.assertEqual(results["response"], raw)
|
||||
self.assertEqual(results["summary"], "no_results")
|
||||
self.assertEqual(results["status"], "ok")
|
||||
|
||||
def test_prepareResults_error(self):
|
||||
raw = {}
|
||||
results = pulsedive.prepareResults(raw)
|
||||
|
||||
Reference in New Issue
Block a user