def start_wsgi_server(step): world.server_proc = mp.Process( target=pywsgi.WSGIServer(('127.0.0.1', 8013), answer).serve_forever) world.vpc_proc = mp.Process( target=pywsgi.WSGIServer(('127.0.0.1', 80), answer).serve_forever) world.server_proc.start() assert lib.stop_service('apache2') world.vpc_proc.start()
def stop_service(step, name): assert lib.stop_service(name)
def start_wsgi_server(step): assert lib.stop_service("apache2") world.server_proc = mp.Process(target=pywsgi.WSGIServer(("127.0.0.1", 8081), answer).serve_forever) world.server_proc.start()