コード例 #1
0
    def generate_request_and_session(self, url, auth=None, uuid=None):
        request = DummyRequest([url], {})
        session = Session(0, request)

        if auth is not None:
            session.is_authed = auth
        if uuid is not None:
            session.uuid = uuid

        request.session = session

        return request