testcaseso let' look at how we can use one of these methods in the context of testing an actual class table - assert methods available from the unittest module method use assertequal(abverify that = assertnotequal(abverify that ! asserttrue(xverify that is true assertfalse(xverify that is false assertin(itemlistverify that item is in list assertnotin(itemlistverify that item is not in list class to test testing class is similar to testing function--much of your work involves testing the behavior of the methods in the class but there are few differencesso let' write class to test consider class that helps administer anonymous surveyssurvey py class anonymoussurvey()"""collect anonymous answers to survey question "" def __init__(selfquestion)"""store questionand prepare to store responses ""self question question self responses [ def show_question(self)"""show the survey question ""print(questionw def store_response(selfnew_response)"""store single response to the survey ""self responses append(new_responsex def show_results(self)"""show all the responses that have been given ""print("survey results:"for response in responsesprint('responsethis class starts with survey question that you provide and includes an empty list to store responses the class has methods to print the survey question vadd new response to the response list wand print all the responses stored in the list to create an instance from this classall you testing your code