Пример #1
0
def test_cheque_verification_failed():
    cheque_verification_failed = [
        "China",
        "Michael Jackson",
        "Vince Mcmahon",
    ]

    transaction = Transaction()

    for approval in cheque_verification_failed:
        assert transaction.cheque_verfication(
            approval) == False, "Cheque has not been recognizes by the system"
Пример #2
0
def test_cheque_verfication():
    cheque_verfication = [
        "bank approved",
        "RBC",
        "CIBC",
    ]

    transaction = Transaction()

    for approval in cheque_verfication:
        assert transaction.cheque_verfication(
            approval) == True, "Cheque is approved"