fix: [tests] Avoiding issues with btc addresses

pull/360/head
chrisr3d 3 years ago
parent 3007761a55
commit 2fc9171a3f
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
  1. 5
      tests/test_expansions.py

@ -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"}

Loading…
Cancel
Save