Example #1
0
 def test_get_balance_test_unused(self):
     assert BitcoreAPI.get_balance(TEST_ADDRESS_UNUSED,
                                   network="testnet") == 0
Example #2
0
 def test_get_balance_return_type(self):
     assert isinstance(
         BitcoreAPI.get_balance(MAIN_ADDRESS_USED1, network="mainnet"), int)
Example #3
0
 def test_get_balance_main_unused(self):
     assert BitcoreAPI.get_balance(MAIN_ADDRESS_UNUSED,
                                   network="mainnet") == 0
Example #4
0
 def test_get_balance_main_used(self):
     assert BitcoreAPI.get_balance(MAIN_ADDRESS_USED1) > 0