def testDepositTransactionType(self): account = BankAccount(1) account.deposit(10) self.assertIsInstance(account.transactions[0],Transaction)
def testDepositTransaction(self): account = BankAccount(1) account.deposit(10) self.assertEqual(len(account.transactions),1)
def testSmallDeposit(self): account = BankAccount(1) account.balance = 10 account.deposit(0.001) self.assertEqual(account.balance,10.001)
def testLargeDeposit(self): account = BankAccount(1) account.balance = 10 account.deposit(2147483650) self.assertEqual(account.balance,2147483660)
def testDecimalDeposit(self): account = BankAccount(1) account.balance = 10 account.deposit(0.50) self.assertEqual(account.balance,10.50)
def testIntegerDeposit(self): account = BankAccount(1) account.balance = 10 account.deposit(10) self.assertEqual(account.balance,20)