def test_get_balance(self): test_account = Account(500, 'checking') self.assertEqual(test_account.get_funds(), 500) test_account.withdraw(250) self.assertEqual(test_account.get_funds(), 250)
def setUp(self): self.test_caccount = Account(270, 'checking') self.test_saccount = Account(10454, 'savings')
def test_account_creation_from_csv_string(self): record = '5902692944186857,151.5,checking' test_account = Account.from_csv_string(record) self.assertEqual(test_account.balance, 151.50) self.assertEqual(test_account.account_type, 'checking')