fix: [tests] Fixed error catching in passive dns and ssl modules

pull/360/head
chrisr3d 2019-12-17 16:46:26 +01:00
parent 2fc9171a3f
commit c41545debb
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 2 deletions

View File

@ -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"}