from handlers.x import hello
from xlib import httpgateway
def test_hello():
# 生成 req
reqid="test_hello"
ip = "127.0.0.1"
wsgienv = {}
req = httpgateway.Request(reqid, wsgienv, ip)
# OK
assert hello(req, "test_info") == ("OK", {'str_info': 'test_info'}, [('api_demo', '1.0.1')])