Corrected test failure message (#9)

This commit is contained in:
Andrew Horn 2021-09-29 03:11:40 -05:00 committed by GitHub
parent 0dddfe1ee4
commit 2bef3bdf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ class UnitTests(unittest.TestCase):
actual = self.food.ledger[1] actual = self.food.ledger[1]
expected = {"amount": -45.67, "description": ""} expected = {"amount": -45.67, "description": ""}
self.assertEqual(actual, expected, 'Expected `withdraw` method with no description to create a blank description.') self.assertEqual(actual, expected, 'Expected `withdraw` method with no description to create a blank description.')
self.assertEqual(good_withdraw, True, 'Expected `transfer` method to return `True`.') self.assertEqual(good_withdraw, True, 'Expected `withdraw` method to return `True`.')
def test_get_balance(self): def test_get_balance(self):
self.food.deposit(900, "deposit") self.food.deposit(900, "deposit")