# Path: pagarme/payable.py
# def find_all():
# def find_by(search_params):
# 
# Path: tests/resources/dictionaries/payable_dictionary.py
# TRANSACTION = transaction.create(transaction_dictionary.VALID_CREDIT_CARD_TRANSACTION)
# PAYABLES = transaction.payables(TRANSACTION['id'])


from pagarme import payable
from tests.resources.dictionaries import payable_dictionary

def test_find_all_payables():
    all_payables = payable.find_all()
    assert all_payables is not None


def test_find_by():
    search_params = {'id': str(payable_dictionary.PAYABLES[0]['id'])}

# Path: pagarme/payable.py
# def find_all():
# def find_by(search_params):
# 
# Path: tests/resources/dictionaries/payable_dictionary.py
# TRANSACTION = transaction.create(transaction_dictionary.VALID_CREDIT_CARD_TRANSACTION)
# PAYABLES = transaction.payables(TRANSACTION['id'])


# Path: tests/payable_test.py
from pagarme import payable
from tests.resources.dictionaries import payable_dictionary


def test_find_all_payables():
    all_payables = payable.find_all()
    assert all_payables is not None


def test_find_by():
    search_params = {'id': str(payable_dictionary.PAYABLES[0]['id'])}

    find_payable = payable.find_by(search_params)