parent
ce3fc33235
commit
76c533f481
@ -41,7 +41,7 @@ class UnitTests(unittest.TestCase):
|
|||||||
self.food.withdraw(45.67, "milk, cereal, eggs, bacon, bread")
|
self.food.withdraw(45.67, "milk, cereal, eggs, bacon, bread")
|
||||||
actual = self.food.get_balance()
|
actual = self.food.get_balance()
|
||||||
expected = 854.33
|
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):
|
def test_transfer(self):
|
||||||
self.food.deposit(900, "deposit")
|
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.')
|
self.assertEqual(actual, expected, 'Expected different chart representation. Check that all spacing is exact.')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user