Beispiel #1
0
 def test_get_unspent_return_type(self):
     assert iter(BlockchainAPI.get_unspent(MAIN_ADDRESS_USED1))
Beispiel #2
0
 def test_get_unspent_main_unused(self):
     assert len(BlockchainAPI.get_unspent(MAIN_ADDRESS_UNUSED)) == 0
Beispiel #3
0
 def test_get_transactions_unused(self):
     assert len(BlockchainAPI.get_transactions(MAIN_ADDRESS_UNUSED)) == 0
Beispiel #4
0
 def test_get_transactions_used(self):
     assert len(BlockchainAPI.get_transactions(MAIN_ADDRESS_USED1)) >= 218
Beispiel #5
0
 def test_get_transactions_return_type(self):
     assert iter(BlockchainAPI.get_transactions(MAIN_ADDRESS_USED1))
Beispiel #6
0
 def test_get_balance_unused(self):
     assert BlockchainAPI.get_balance(MAIN_ADDRESS_UNUSED) == 0
Beispiel #7
0
 def test_get_balance_return_type(self):
     assert isinstance(BlockchainAPI.get_balance(MAIN_ADDRESS_USED1), int)