Exemple #1
0
def test_address_total_amount():
    address = Address()
    address.add_utxo(1, 5000000000000000000)
    address.add_utxo(2, 4000000000000000000)
    assert address.total_amount == 9000000000000000000
Exemple #2
0
def address0():
    address = Address()
    address.add_utxo(1, 50000)
    address.add_utxo(4, 60000)
    return address
Exemple #3
0
def test_address_spent_1():
    address = Address()
    address.add_utxo(1, 5000000000000000000)
    address.spent(1)
    assert not address.is_unspent(1)
Exemple #4
0
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
Exemple #5
0
def test_address_add_utxo():
    address = Address()
    address.add_utxo(1, 5000000000000000000)
    assert (1, 5000000000000000000) in address.all_utxos
Exemple #6
0
def address2():
    address = Address(b'Falcon00000000000000000000000000')
    address.add_utxo(3, 3001)
    return address
Exemple #7
0
def address1():
    address = Address()
    address.add_utxo(2, 4000)
    return address