'Unit Test: If entrance exam is enabled then its content e.g. problems should be loaded and redirection will
occur with entrance exam contents.'

def test_entrance_exam_content_presence(self):

    url = reverse('courseware', kwargs={'course_id': unicode(self.course.id)})
    expected_url = reverse('courseware_section', kwargs={'course_id': unicode(self.course.id), 'chapter': self.entrance_exam.location.name, 'section': self.exam_1.location.name})
    resp = self.client.get(url)
    self.assertRedirects(resp, expected_url, status_code=302, target_status_code=200)
    resp = self.client.get(expected_url)
    self.assertIn('Exam    Vertical    -    Unit    1', resp.content)
