'Create a new survey and add answers to it'

def test_multiple_user_answers(self):

    survey = self._create_test_survey()
    self.assertIsNotNone(survey)
    survey.save_user_answers(self.student, self.student_answers, self.course_id)
    survey.save_user_answers(self.student2, self.student2_answers, self.course_id)
    self.assertTrue(survey.has_user_answered_survey(self.student))
    all_answers = survey.get_answers()
    self.assertEquals(len(all_answers.keys()), 2)
    self.assertIn(self.student.id, all_answers)
    self.assertIn(self.student2.id, all_answers)
    self.assertEquals(all_answers[self.student.id], self.student_answers)
    self.assertEquals(all_answers[self.student2.id], self.student2_answers)
    answers = survey.get_answers(self.student)
    self.assertEquals(len(answers.keys()), 1)
    self.assertIn(self.student.id, answers)
    self.assertEquals(answers[self.student.id], self.student_answers)
    answers = survey.get_answers(self.student2)
    self.assertEquals(len(answers.keys()), 1)
    self.assertIn(self.student2.id, answers)
    self.assertEquals(answers[self.student2.id], self.student2_answers)
