def METHOD_NAME(self):
    """Check that all foreign keys are created correctly"""
    # filter questions on survey
    questions = list(StudentQuestionBase.objects.filter(survey=self.survey))
    self.assertTrue(self.grading_q.pk in [q.pk for q in questions])
    self.assertTrue(self.slider_q.pk in [q.pk for q in questions])
    self.assertTrue(self.grading_ans.question, self.grading_q)
    self.assertTrue(self.slider_ans.question, self.slider_q)
    # filter workfields on survey
    workfields = list(WorkField.objects.filter(survey=self.survey))
    self.assertTrue(self.wfield1 in workfields)
    self.assertTrue(self.wfield2 in workfields)
    self.assertFalse(self.wfield_no_survey in workfields)
    # filter workfield answers on student to make sure we get them all
    work_answers = list(StudentAnswerWorkField.objects.filter(student=self.student))
    self.assertTrue(self.wfieldans1 in work_answers)
    self.assertTrue(self.wfieldans2 in work_answers)
    self.assertEqual(len(work_answers), 2)