def test_transfer_to(self):
        account = BankAccount("Tester", 100, "$")
        result = account.transfer_to(self.account, 70)

        self.assertTrue(result)
        self.assertEqual(self.account.balance(), 70)
        self.assertEqual(account.balance(), 30)
 def test_transfer(self):
     account1 = BankAccount("Rado", 100, "$")
     account2 = BankAccount("Ivo", 0, "$")
     result = account1.transfer_to(account2, 50)
     self.assertTrue(result)
    def test_history_for_transfer_to(self):
        account = BankAccount("Tester", 100, "$")
        result = account.transfer_to(self.account, 50)

        self.assertEqual(self.account.history(), ["Account was created", "Transfer from Tester for 50$"])
        self.assertEqual(account.history(), ["Account was created", "Transfer to Rado for 50$"])