Ideally, resp.stream is of a type that inherits from io.BaseType to more realistically simulate a WSGI request. I think it would be better to leave this stuff as-is.