def test_address_total_amount(): address = Address() address.add_utxo(1, 5000000000000000000) address.add_utxo(2, 4000000000000000000) assert address.total_amount == 9000000000000000000
def address0(): address = Address() address.add_utxo(1, 50000) address.add_utxo(4, 60000) return address
def test_address_spent_1(): address = Address() address.add_utxo(1, 5000000000000000000) address.spent(1) assert not address.is_unspent(1)
def test_address_add_utxo_null(): # Should this pass since its (None, None) or should we refactor so that this is an invalid add address = Address() address.add_utxo(None, None) assert (None, None) in address.all_utxos
def test_address_add_utxo(): address = Address() address.add_utxo(1, 5000000000000000000) assert (1, 5000000000000000000) in address.all_utxos
def address2(): address = Address(b'Falcon00000000000000000000000000') address.add_utxo(3, 3001) return address
def address1(): address = Address() address.add_utxo(2, 4000) return address