diff --git a/tests/alerters/thehive_test.py b/tests/alerters/thehive_test.py index bbf73de2..e954588d 100644 --- a/tests/alerters/thehive_test.py +++ b/tests/alerters/thehive_test.py @@ -97,6 +97,8 @@ def test_thehive_alerter(caplog): actual_data = json.loads(mock_post_request.call_args_list[0][1]['data']) # The date and sourceRef are autogenerated, so we can't expect them to be a particular value del actual_data['date'] + + assert len(actual_data['sourceRef']) == 36 del actual_data['sourceRef'] assert expected_data == actual_data