Пример #1
0
def get_unspent_outputs():
    wallet = Wallet(
        JSONRPCWallet(
            host=settings.RPC_WALLET_HOST,
            port=settings.RPC_WALLET_PORT,
            user=settings.RPC_WALLET_USER,
            password=settings.RPC_WALLET_PASSWORD,
            timeout=settings.RPC_WALLET_REQUESTS_TIMEOUT,
        )
    )
    return wallet.get_unspent_outputs()
Пример #2
0
def test_get_unspent_outputs():
    wallet = Wallet(MagicMock())
    wallet.get_unspent_outputs()
    assert wallet._backend.get_unspent_outputs.called