'Test that the request object is available in the template and that its
attributes can\'t be overridden by GET and POST parameters (#3828).'

def test_request_attributes(self):

    url = '/request_attrs/'
    response = self.client.get(url)
    self.assertContains(response, 'Have    request')
    response = self.client.get(url)
    self.assertContains(response, 'Not    secure')
    response = self.client.get(url, {'is_secure': 'blah'})
    self.assertContains(response, 'Not    secure')
    response = self.client.post(url, {'is_secure': 'blah'})
    self.assertContains(response, 'Not    secure')
    response = self.client.get(url)
    self.assertContains(response, url)
    response = self.client.get(url, {'path': '/blah/'})
    self.assertContains(response, url)
    response = self.client.post(url, {'path': '/blah/'})
    self.assertContains(response, url)
