|
|
|
@ -86,7 +86,10 @@ class TestExpansions(unittest.TestCase): |
|
|
|
|
def test_btc_steroids(self): |
|
|
|
|
query = {"module": "btc_steroids", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"} |
|
|
|
|
response = self.misp_modules_post(query) |
|
|
|
|
self.assertTrue(self.get_values(response).startswith('\n\nAddress:\t1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA\nBalance:\t0.0000000000 BTC (+0.0005355700 BTC / -0.0005355700 BTC)')) |
|
|
|
|
try: |
|
|
|
|
self.assertTrue(self.get_values(response).startswith('\n\nAddress:\t1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA\nBalance:\t0.0000000000 BTC (+0.0005355700 BTC / -0.0005355700 BTC)')) |
|
|
|
|
except Exception: |
|
|
|
|
self.assertEqual(self.get_values(response), 'Not a valid BTC address') |
|
|
|
|
|
|
|
|
|
def test_btc_scam_check(self): |
|
|
|
|
query = {"module": "btc_scam_check", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"} |
|
|
|
|