'Assert that a posted back course_id is stored in the database'

def test_course_id_persists(self):

    answers = deepcopy(self.student_answers)
    answers.update({'course_id': unicode(self.course.id)})
    resp = self.client.post(self.postback_url, answers)
    self.assertEquals(resp.status_code, 200)
    self._assert_no_redirect(self.course)
    answer_objs = SurveyAnswer.objects.filter(user=self.user, form=self.survey)
    for answer_obj in answer_objs:
        self.assertEquals(answer_obj.course_key, self.course.id)
