Beispiel #1
0
    def test_c_withdraw(self):

        account1 = Customer("christian", "199290877464727", "780987122", 2000,
                            1234)

        testNewbalance = account1.c_withdraw(500, 1234)
        self.assertEqual(testNewbalance, 1475.0)
Beispiel #2
0
                  "2: Withdraw money"
                  "\n"
                  "3: check balance"
                  "\n"
                  "4: Transfer money\n"
                  "5: buy electricity or airtime\n"
                  "6: pay a business\n"
                  "7: create account\n"))

        if query == 1:
            account1.deposit()
            cont = input("Do you want to do another operation?\n"
                         "y: yes\n"
                         "n: no\n")
        elif query == 2:
            account1.c_withdraw()
            cont = input("Do you want to do another operation?\n"
                         "y: yes\n"
                         "n: no\n")

        elif query == 3:
            account1.enquiry()
            cont = input("Do you want to do another operation?\n"
                         "y: yes\n"
                         "n: no\n")

        elif query == 4:
            account1.c_transfer()
            cont = input("Do you want to do another operation?\n"
                         "y: yes\n"
                         "n: no\n")