<gh_stars>1-10
import copy

import pytest

from arcus.resources import Transaction


@pytest.mark.vcr
def test_transactions_list(client):
    transactions = client.transactions.list()
    assert transactions
    assert type(transactions) is list
    assert all(isinstance(txn, Transaction) for txn in transactions)


@pytest.mark.vcr
def test_transaction_refresh(client):
    transaction = client.transactions.list()[0]
    copied = copy.deepcopy(transaction)
    transaction.status = 'hey there'
    transaction.refresh()
    assert transaction == copied

import copy

import pytest

from arcus.resources import Transaction


@pytest.mark.vcr
def test_transactions_list(client):
    transactions = client.transactions.list()
    assert transactions
    assert type(transactions) is list
    assert all(isinstance(txn, Transaction) for txn in transactions)


@pytest.mark.vcr
def test_transaction_refresh(client):
    transaction = client.transactions.list()[0]
    copied = copy.deepcopy(transaction)
    transaction.status = 'hey there'
    transaction.refresh()
    assert transaction == copied