From f9f3db84680dfa167ef9c4f35261d97499d5b052 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Tue, 25 Feb 2020 15:26:52 +0100 Subject: [PATCH] chg: Quick ransomdncoin test just to make sure the module loads - I do not have any api key right now, so the test should just reach the error --- tests/test_expansions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_expansions.py b/tests/test_expansions.py index ee3a906..801769a 100644 --- a/tests/test_expansions.py +++ b/tests/test_expansions.py @@ -363,6 +363,15 @@ class TestExpansions(unittest.TestCase): response = self.misp_modules_post(query) self.assertEqual(self.get_values(response), '1GXZ6v7FZzYBEnoRaG77SJxhu7QkvQmFuh') + def test_ransomcoindb(self): + query = {"module": "ransomcoindb", + "attributes": {"type": "btc", + "value": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA", + "uuid": "ea89a33b-4ab7-4515-9f02-922a0bee333d"}} + if 'ransomcoindb' not in self.configs: + response = self.misp_modules_post(query) + self.assertEqual(self.get_errors(response), "Ransomcoindb API key is missing") + def test_rbl(self): query = {"module": "rbl", "ip-src": "8.8.8.8"} response = self.misp_modules_post(query)