'Unit Test: entrance exam requirement message should be present in response'

def test_entrance_exam_requirement_message(self):

    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.assertEqual(resp.status_code, 200)
    self.assertIn('To    access    course    materials,    you    must    score', resp.content)
