def start_web_app():
""" starts the web app in a TestApp for testing """
nf_inst = ncontrol.NControl()
urls = nf_inst.urls()
app = web.application(urls, globals())
test_app = TestApp(app.wsgifunc())
return test_app
评论列表
文章目录