'Unit Test: entrance exam message should not be present outside the context of entrance exam subsection.'

def test_entrance_exam_requirement_message_hidden(self):

    self.client.logout()
    staff_user = StaffFactory(course_key=self.course.id)
    self.client.login(username=staff_user.username, password='test')
    CourseEnrollment.enroll(staff_user, self.course.id)
    url = reverse('courseware_section', kwargs={'course_id': unicode(self.course.id), 'chapter': self.chapter.location.name, 'section': self.chapter_subsection.location.name})
    resp = self.client.get(url)
    self.assertEqual(resp.status_code, 200)
    self.assertNotIn('To    access    course    materials,    you    must    score', resp.content)
    self.assertNotIn('You    have    passed    the    entrance    exam.', resp.content)
