'Helper method to assert that all known redirect points do redirect as expected'

def _assert_survey_redirect(self, course):

    for view_name in ['courseware', 'info', 'progress']:
        resp = self.client.get(reverse(view_name, kwargs={'course_id': unicode(course.id)}))
        self.assertRedirects(resp, reverse('course_survey', kwargs={'course_id': unicode(course.id)}))
