'test get entrance exam content method'

def test_get_entrance_exam_content(self):

    exam_chapter = get_entrance_exam_content(self.request.user, self.course)
    self.assertEqual(exam_chapter.url_name, self.entrance_exam.url_name)
    self.assertFalse(user_has_passed_entrance_exam(self.request.user, self.course))
    answer_entrance_exam_problem(self.course, self.request, self.problem_1)
    answer_entrance_exam_problem(self.course, self.request, self.problem_2)
    exam_chapter = get_entrance_exam_content(self.request.user, self.course)
    self.assertEqual(exam_chapter, None)
    self.assertTrue(user_has_passed_entrance_exam(self.request.user, self.course))
