示例#1
0
 def test_get_unspent_main_used_too_many(self):
     with pytest.raises(bit.exceptions.ExcessiveAddress):
         BlockchainAPI.get_unspent(MAIN_ADDRESS_USED3)
示例#2
0
 def test_get_unspent_main_unused(self):
     assert len(BlockchainAPI.get_unspent(MAIN_ADDRESS_UNUSED)) == 0
示例#3
0
 def test_get_unspent_return_type(self):
     assert iter(BlockchainAPI.get_unspent(MAIN_ADDRESS_USED1))