# Path: pagarme/card.py
# def create(dictionary):
# def find_all():
# def find_by(search_params):
# 
# Path: tests/resources/dictionaries/card_dictionary.py
# INVALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '611',
#     'card_holder_name': 'THEON GREYJOY',
#     'card_expiration_date': '1220'
# }
# VALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '111',
#     'card_holder_name': 'DAENERYS TARGARYEN',
#     'card_expiration_date': '1220'
# }


from pagarme import card
from tests.resources.dictionaries import card_dictionary


def test_create_card():
    _card = card.create(card_dictionary.VALID_CARD)
    assert _card['id'] is not None


def test_find_all():

# Path: pagarme/card.py
# def create(dictionary):
# def find_all():
# def find_by(search_params):
# 
# Path: tests/resources/dictionaries/card_dictionary.py
# INVALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '611',
#     'card_holder_name': 'THEON GREYJOY',
#     'card_expiration_date': '1220'
# }
# VALID_CARD = {
#     'card_number': '4242424242424242',
#     'card_cvv': '111',
#     'card_holder_name': 'DAENERYS TARGARYEN',
#     'card_expiration_date': '1220'
# }


# Path: tests/card_test.py
from pagarme import card
from tests.resources.dictionaries import card_dictionary



def test_create_card():
    _card = card.create(card_dictionary.VALID_CARD)
    assert _card['id'] is not None


def test_find_all():

    cards = card.find_all()