'Runs the wrapped WSGI app with the given environment.'

def run_wsgi_app(self, environ, buffered=False):

    if (self.cookie_jar is not None):
        self.cookie_jar.inject_wsgi(environ)
    rv = run_wsgi_app(self.application, environ, buffered=buffered)
    if (self.cookie_jar is not None):
        self.cookie_jar.extract_wsgi(environ, rv[2])
    return rv
