def spendable_small_hex_large_vout(txout_small_coin_large_script): return Spendable.from_tx_out(txout_small_coin_large_script, b"\x00", 10)
def spendable_large_hex_large_vout(txout_large_coin_large_script): return Spendable.from_tx_out(txout_large_coin_large_script, b"\xFF", 10)
def test_spendable(spendable_small_hex_small_vout): spendable = Spendable.from_tx_out(TxOut(0, b"\x00"), b"\x00", 0) assert isinstance(spendable, Spendable) assert spendable.tx_hash == b"\x00" assert spendable.tx_out_index == 0