Пример #1
0
def test_card_one():
    card = Card.one(number='5448750078699849',
                    exp_month=2,
                    exp_year=2026,
                    cvv2='353')
    assert card.id
Пример #2
0
def test_card_one_errors():
    with pytest.raises(NoResultFound):
        Card.one(user_id='fake id')
Пример #3
0
def test_card_one():
    card = Card.one(number='4231450155147929',
                    exp_month=8,
                    exp_year=2026,
                    cvv2='144')
    assert card.id