fix: [tests] Added missing variable

pull/360/head
chrisr3d 2019-12-17 15:47:22 +01:00
parent 3f7ee7c1a2
commit aa721acfd9
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class TestExpansions(unittest.TestCase):
except Exception: except Exception:
self.assertTrue(self.get_errors(response).startswith('There is an authentication error')) self.assertTrue(self.get_errors(response).startswith('There is an authentication error'))
else: 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 incomplete'))
def test_circl_passivessl(self): def test_circl_passivessl(self):
@ -125,6 +126,7 @@ class TestExpansions(unittest.TestCase):
except Exception: except Exception:
self.assertTrue(self.get_errors(response).startswith('There is an authentication error')) self.assertTrue(self.get_errors(response).startswith('There is an authentication error'))
else: 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 incomplete'))
def test_countrycode(self): def test_countrycode(self):