def __init__(self, user=None, method='<STR_LIT:GET>', cookies={}, data={}):
super(FakeRequest, self).__init__()<EOL>self.method = method<EOL>self.COOKIES = cookies<EOL>if user:<EOL><INDENT>self.user = user<EOL><DEDENT>if method == '<STR_LIT:GET>':<EOL><INDENT>self.GET = data<EOL><DEDENT>else:<EOL><INDENT>self.POST = data<EOL><DEDENT>self.path = '<STR_LIT>'<EOL>
Constructor

        :param user:
            Django User object to include in the request.  Defaults to None.
            If none is given then the parameter is not set at all
        :param method:
            Request method.  Defaults to 'GET'
        :param cookies:
            Dict containing cookies for the request.  Defaults to empty
        :param data:
            Dict for get or post fields.  Defaults to empty