Browse Source

fix: [tests] Less specific assertion for the rbl module test

chrisr3d_patch
chrisr3d 1 year ago
parent
commit
0fcdfa6c53
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 2
      tests/test_expansions.py

2
tests/test_expansions.py

@ -397,7 +397,7 @@ class TestExpansions(unittest.TestCase):
query = {"module": "rbl", "ip-src": "8.8.8.8"}
response = self.misp_modules_post(query)
try:
self.assertTrue(self.get_values(response).startswith('8.8.8.8.query.senderbase.org: "0-0=1|1=GOOGLE'))
self.assertTrue(self.get_values(response).startswith('8.8.8.8.query.senderbase.org'))
except Exception:
self.assertEqual(self.get_errors(response), "No data found by querying known RBLs")

Loading…
Cancel
Save