Exemplo n.º 1
0
def get_all_ids():
    account_count = opentxs.OTAPI_Wrap_GetAccountCount()
    accounts = []
    for i in range(account_count):
        _id = opentxs.OTAPI_Wrap_GetAccountWallet_ID(i)
        accounts.append(_id)

    return accounts
Exemplo n.º 2
0
def test_account_count_increments(an_account):
    then = opentxs.OTAPI_Wrap_GetAccountCount()
    an_account.create()
    now = opentxs.OTAPI_Wrap_GetAccountCount()
    assert then + 1 == now
Exemplo n.º 3
0
def test_account_id_retrievable(an_account):
    an_account.create()
    num_accts = opentxs.OTAPI_Wrap_GetAccountCount()
    ids = [opentxs.OTAPI_Wrap_GetAccountWallet_ID(i) for i in range(num_accts)]
    assert an_account._id in set(ids)