'Test index view with a gated sequential raises Http404'

def test_index_with_gated_sequential(self):

    self.assertTrue(self.client.login(username=self.user.username, password='test'))
    response = self.client.get(reverse('courseware_section', kwargs={'course_id': unicode(self.course.id), 'chapter': self.chapter.url_name, 'section': self.gated_seq.url_name}))
    self.assertEquals(response.status_code, 404)
