mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-18 06:52:56 +01:00
Another no_results change
This commit is contained in:
@@ -89,5 +89,5 @@ class TestMHRMethods(unittest.TestCase):
|
|||||||
artifactInput = '{"value": "14af04b8e69682782607a0c5796ca56999eda6b3", "artifactType": "hash"}'
|
artifactInput = '{"value": "14af04b8e69682782607a0c5796ca56999eda6b3", "artifactType": "hash"}'
|
||||||
with patch('mhr.mhr.sendReq', new=MagicMock(return_value=output)) as mock:
|
with patch('mhr.mhr.sendReq', new=MagicMock(return_value=output)) as mock:
|
||||||
results = mhr.analyze(artifactInput)
|
results = mhr.analyze(artifactInput)
|
||||||
self.assertEqual(results["summary"], "No results found.")
|
self.assertEqual(results["summary"], "no_results")
|
||||||
mock.assert_called_once()
|
mock.assert_called_once()
|
||||||
|
|||||||
Reference in New Issue
Block a user