Exemplo n.º 1
0
def test_transaction_limit_exceeded():
    transaction_number_exceeded = ["4" "5" "6" "7" "10" "12"]

    transaction = Transaction()

    for number in transaction_number_exceeded:
        assert transaction.transaction_limit_for_day(
            number) == False, "The limit of transactions has been reached"
Exemplo n.º 2
0
def test_transaction_limit():
    transaction_number = ["1" "2" "3"]

    transaction = Transaction()

    for number in transaction_number:
        assert transaction.transaction_limit_for_day(
            number) == True, "The limit of transactions has not been reached"