def test_card_one(): card = Card.one(number='5448750078699849', exp_month=2, exp_year=2026, cvv2='353') assert card.id
def test_card_one_errors(): with pytest.raises(NoResultFound): Card.one(user_id='fake id')
def test_card_one(): card = Card.one(number='4231450155147929', exp_month=8, exp_year=2026, cvv2='144') assert card.id