The `logout` method in `django.test.client.Client` is used to simulate a user logging out of a Django application during testing. This method sends a POST request to the logout URL specified in the Django settings, which should log out the user associated with the client. It returns a boolean value indicating whether the logout was successful or not.
Python Client.logout - 57 examples found. These are the top rated real world Python examples of django.test.client.Client.logout extracted from open source projects. You can rate examples to help us improve the quality of examples.