From c41545debbf57da660cf30b824c55c87bba49425 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Tue, 17 Dec 2019 16:46:26 +0100 Subject: [PATCH] fix: [tests] Fixed error catching in passive dns and ssl modules --- tests/test_expansions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_expansions.py b/tests/test_expansions.py index 4636e4d..528fb4a 100644 --- a/tests/test_expansions.py +++ b/tests/test_expansions.py @@ -112,7 +112,7 @@ class TestExpansions(unittest.TestCase): self.assertTrue(self.get_errors(response).startswith('There is an authentication error')) else: response = self.misp_modules_post(query) - self.assertTrue(self.get_errors(response).startswith('CIRCL Passive DNS authentication is incomplete')) + self.assertTrue(self.get_errors(response).startswith('CIRCL Passive DNS authentication is missing.')) def test_circl_passivessl(self): module_name = "circl_passivessl" @@ -130,7 +130,7 @@ class TestExpansions(unittest.TestCase): self.assertTrue(self.get_errors(response).startswith('There is an authentication error')) else: response = self.misp_modules_post(query) - self.assertTrue(self.get_errors(response).startswith('CIRCL Passive SSL authentication is incomplete')) + self.assertTrue(self.get_errors(response).startswith('CIRCL Passive SSL authentication is missing.')) def test_countrycode(self): query = {"module": "countrycode", "domain": "www.circl.lu"}