def _base_environ(self, **request):
        # This is a minimal valid WSGI environ dictionary, plus:
        # - HTTP_COOKIE: for cookie support,
        # - REMOTE_ADDR: often useful, see #8551.
        # See http://www.python.org/dev/peps/pep-3333/#environ-variables
        environ = {
            'HTTP_COOKIE':       self.cookies.output(header='', sep='; '),
            'PATH_INFO':         str('/'),
            'REMOTE_ADDR':       str('127.0.0.1'),
            'REQUEST_METHOD':    str('GET'),
            'SCRIPT_NAME':       str(''),
            'SERVER_NAME':       str('testserver'),
            'SERVER_PORT':       str('80'),
            'SERVER_PROTOCOL':   str('HTTP/1.1'),
            'wsgi.version':      (1, 0),
            'wsgi.url_scheme':   str('http'),
            'wsgi.input':        FakePayload(b''),
            'wsgi.errors':       self.errors,
            'wsgi.multiprocess': True,
            'wsgi.multithread':  False,
            'wsgi.run_once':     False,
        }
        environ.update(self.defaults)
        environ.update(request)
        return environ
The base environment for a request.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/test/client.py/RequestFactory._base_environ