The `do_request` method is a function in the `TestApp` class of the `webtest` module in Python. It is used to perform HTTP requests to a web application that is being tested. This method allows users to send requests such as GET, POST, DELETE, etc., to a specific URL and retrieve the corresponding response. It can also be used to set various request parameters such as headers, cookies, and query parameters. The `do_request` method provides a convenient way for developers to simulate HTTP requests and test the functionality and behavior of their web applications.
Python TestApp.do_request - 19 examples found. These are the top rated real world Python examples of webtest.TestApp.do_request extracted from open source projects. You can rate examples to help us improve the quality of examples.