mirror of https://github.com/MISP/misp-modules
fix: [tests] Avoiding issues with btc addresses
parent
3007761a55
commit
2fc9171a3f
|
@ -86,7 +86,10 @@ class TestExpansions(unittest.TestCase):
|
||||||
def test_btc_steroids(self):
|
def test_btc_steroids(self):
|
||||||
query = {"module": "btc_steroids", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"}
|
query = {"module": "btc_steroids", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"}
|
||||||
response = self.misp_modules_post(query)
|
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):
|
def test_btc_scam_check(self):
|
||||||
query = {"module": "btc_scam_check", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"}
|
query = {"module": "btc_scam_check", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"}
|
||||||
|
|
Loading…
Reference in New Issue