Browse Source

chg: [doc] in case btc expansion fails, give another hint at why it fails

pull/395/head
Steve Clement 2 years ago
parent
commit
e655905ee0
No known key found for this signature in database GPG Key ID: 69A20F509BE4AEE9
  1. 5
      tests/test_expansions.py

5
tests/test_expansions.py

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

Loading…
Cancel
Save