Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Choose ONE answer. Python question. Consider the following class definition: Our

ID: 3909512 • Letter: C

Question

Choose ONE answer. Python question.

Consider the following class definition:

Our task is to write a unit test for the method deposit using the unittest framework.

We'll assume that the Account class definition is included in the file account.py.

We start with the following in the module testaccount.py:

Which of the following statements are the correct statements to add to the test_deposit method definition?

  self.foothill_account.deposit(1000)  self.assertEqual(self.foothill_account.balance, 100)  self.assertEqual(self.foothill_account.holder, "Footsie the Owl")  self.assertIsInstance(self.foothill_account.deposit(100), Account)

Explanation / Answer

account.Account gives an error So, Options 2,3,6 are wrong account.foothill_account.deposit(100) also gives error So, Option 5 is wrong. In Option 1, statement self.foothill_account.balance is 1000 not 100. Answer: ------- Option 4