Example #1
0
def test_address_spent_1():
    address = Address()
    address.add_utxo(1, 5000000000000000000)
    address.spent(1)
    assert not address.is_unspent(1)
Example #2
0
def test_address_isunspent():
    address = Address()
    address.outputs[0][1] = 5000000000000000000
    assert address.is_unspent(1)