Exemplo n.º 1
0
 def test_get_unspent_test_unused(self):
     assert len(BitcoreAPI.get_unspent_testnet(TEST_ADDRESS_UNUSED)) == 0
Exemplo n.º 2
0
 def test_get_unspent_return_type(self):
     assert iter(BitcoreAPI.get_unspent(MAIN_ADDRESS_USED1))
Exemplo n.º 3
0
 def test_get_unspent_main_unused(self):
     assert len(BitcoreAPI.get_unspent(MAIN_ADDRESS_UNUSED)) == 0
Exemplo n.º 4
0
 def test_get_transactions_main_unused(self):
     assert len(BitcoreAPI.get_transactions(MAIN_ADDRESS_UNUSED)) == 0
Exemplo n.º 5
0
 def test_get_transactions_return_type(self):
     assert iter(BitcoreAPI.get_transactions(MAIN_ADDRESS_USED1))
Exemplo n.º 6
0
 def test_get_balance_test_unused(self):
     assert BitcoreAPI.get_balance_testnet(TEST_ADDRESS_UNUSED) == 0
Exemplo n.º 7
0
 def test_get_balance_main_unused(self):
     assert BitcoreAPI.get_balance(MAIN_ADDRESS_UNUSED) == 0
Exemplo n.º 8
0
 def test_get_balance_return_type(self):
     assert isinstance(BitcoreAPI.get_balance(MAIN_ADDRESS_USED1), int)