          self.assertEquals(len(response.redirect_chain), 2)
  
      def test_notfound_response(self):
          "GET a URL that responds as '404:Not Found'"
          response = self.client.get('/test_client/bad_view/')
  
 
</s> remove             response = self.get(path, QueryDict(query), follow=False)
 </s> add             response = self.get(path, QueryDict(query), follow=False, **extra)
    def test_redirect_http(self):
        "GET a URL that redirects to an http URI"
        response = self.client.get('/test_client/http_redirect_view/',follow=True)
        self.assertFalse(response.test_was_secure_request)

    def test_redirect_https(self):
        "GET a URL that redirects to an https URI"
        response = self.client.get('/test_client/https_redirect_view/',follow=True)
        self.assertTrue(response.test_was_secure_request)

          self.assertEquals(len(response.redirect_chain), 2)
  
    def test_redirect_http(self):
        "GET a URL that redirects to an http URI"
        response = self.client.get('/test_client/http_redirect_view/',follow=True)
        self.assertFalse(response.test_was_secure_request)

    def test_redirect_https(self):
        "GET a URL that redirects to an https URI"
        response = self.client.get('/test_client/https_redirect_view/',follow=True)
        self.assertTrue(response.test_was_secure_request)

      def test_notfound_response(self):
          "GET a URL that responds as '404:Not Found'"
          response = self.client.get('/test_client/bad_view/')
  
keep add keep keep keep keep
 Fixed #12011 -- Modified the test client to preserve the request scheme on a redirect. Thanks to tgardner for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12419 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/modeltests/test_client/models.py