소스 검색
chg: [doc] in case btc expansion fails, give another hint at why it fails
pull/395/head
No known key found for this signature in database
GPG 키 ID: 69A20F509BE4AEE9
1개의 변경된 파일과
3개의 추가작업 그리고
2개의 파일을 삭제
-
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"} |
|
|
|
|