Ejemplo n.º 1
0
    def test_c_transfer(self):

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

        amount = 50000
        self.assertGreater(amount, account1.balance)

        testamount = account1.c_transfer(50000, 1234)
        self.assertEqual(testamount, 0)

        testpassword = account1.c_transfer(1000, 2134)
        self.assertEqual(testpassword, "")
Ejemplo n.º 2
0
                         "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")

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

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