fix: Update test_module.py (#6)

Fixed expected value
This commit is contained in:
Nacho 2021-01-23 01:53:53 +01:00 committed by GitHub
parent ce3fc33235
commit 76c533f481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ class UnitTests(unittest.TestCase):
self.food.withdraw(45.67, "milk, cereal, eggs, bacon, bread")
actual = self.food.get_balance()
expected = 854.33
self.assertEqual(actual, expected, 'Expected balance to be 54.33')
self.assertEqual(actual, expected, 'Expected balance to be 854.33')
def test_transfer(self):
self.food.deposit(900, "deposit")
@ -94,4 +94,4 @@ class UnitTests(unittest.TestCase):
self.assertEqual(actual, expected, 'Expected different chart representation. Check that all spacing is exact.')
if __name__ == "__main__":
unittest.main()
unittest.main()