'An assertion is raised if the original page couldn\'t be retrieved as expected'

def test_redirect_on_non_redirect_page(self):

    response = self.client.get(u'/test_client/get_view/')
    try:
        self.assertRedirects(response, u'/test_client/get_view/')
    except AssertionError as e:
        self.assertIn(u"Response    didn't    redirect    as    expected:    Response    code    was    200    (expected    302)", str(e))
    try:
        self.assertRedirects(response, u'/test_client/get_view/', msg_prefix=u'abc')
    except AssertionError as e:
        self.assertIn(u"abc:    Response    didn't    redirect    as    expected:    Response    code    was    200    (expected    302)", str(e))
