from payit import Transaction


def test_transaction():
    transaction = Transaction(
        amount=1000,
        order_id=1,
        meta=dict(card_number="xyz"),
    )
    transaction_dict = transaction.to_dict()
    assert transaction_dict["amount"] == transaction.amount

47a49cbb866be14e2e4380fa4a2e6589da6810dc
<mask token>

<mask token>


def test_transaction():
    transaction = Transaction(amount=1000, order_id=1, meta=dict(
        card_number='xyz'))
    transaction_dict = transaction.to_dict()
    assert transaction_dict['amount'] == transaction.amount

from payit import Transaction


def test_transaction():
    transaction = Transaction(amount=1000, order_id=1, meta=dict(
        card_number='xyz'))
    transaction_dict = transaction.to_dict()
    assert transaction_dict['amount'] == transaction.amount

from payit import Transaction


def test_transaction():
    transaction = Transaction(
        amount=1000,
        order_id=1,
        meta=dict(card_number="xyz"),
    )
    transaction_dict = transaction.to_dict()
    assert transaction_dict["amount"] == transaction.amount
