in test_survey py we created new instance of anonymoussurvey in each test methodand we created new responses in each method the unittest testcase class has setup(method that allows you to create these objects once and then use them in each of your test methods when you include setup(method in testcase classpython runs the setup(method before running each method starting with test_ any objects created in the setup(method are then available in each test method you write let' use setup(to create survey instance and set of responses that can be used in test_store_single_response(and test_store_three_responses()import unittest from survey import anonymoussurvey class testanonymoussurvey(unittest testcase)"""tests for the class anonymoussurvey "" def setup(self)""create survey and set of responses for use in all test methods ""question "what language did you first learn to speak?self my_survey anonymoussurvey(questionself responses ['english''spanish''mandarin'def test_store_single_response(self)"""test that single response is stored properly ""self my_survey store_response(self responses[ ]self assertin(self responses[ ]self my_survey responsesdef test_store_three_responses(self)"""test that three individual responses are stored properly ""for response in self responsesself my_survey store_response(responsefor response in self responsesself assertin(responseself my_survey responsesunittest main(the method setup(does two thingsit creates survey instance uand it creates list of responses each of these is prefixed by selfso they can be used anywhere in the class this makes the two test methods simplerbecause neither one has to make survey instance or response the method test_store_single_response(verifies that the first response in self responses-self responses[ ]--can be stored correctlyand test_store_ single_response(verifies that all three responses in self responses can be stored correctly when we run test_survey py againboth tests still pass these tests would be particularly useful when trying to expand anonymoussurvey to handle multiple responses for each person after modifying the code to accept multiple testing your code