.. module:: werkzeug.test Testing WSGI Applications ========================= Test Client ----------- Werkzeug provides a :class:`Client` to simulate requests to a WSGI application without starting a server. The client has methods for making different types of requests, as well as managing cookies across requests. >>> from werkzeug.test import Client >>> from werkzeug.testapp import test_app >>> c = Client(test_app) >>> response = c.get("/") >>> response.status_code 200 >>> resp.headers Headers([('Content-Type', 'text/html; charset=utf-8'), ('Content-Length', '6658')]) >>> response.get_data(as_text=True) '