'Assert that a new course which has a required survey but user has not answered it yet'

def test_user_not_yet_answered_required_survey(self):

    self.assertTrue(is_survey_required_and_unanswered(self.student, self.course))
    temp_course = CourseFactory.create(course_survey_required=False)
    self.assertFalse(is_survey_required_and_unanswered(self.student, temp_course))
    temp_course = CourseFactory.create(course_survey_required=True, course_survey_name='NonExisting')
    self.assertFalse(is_survey_required_and_unanswered(self.student, temp_course))
