Fixed #12571 -- Attached originating WSGIRequest to test client responses.

Originating WSGIRequests are now attached to the ``wsgi_request`` attribute of
the ``HttpResponse`` returned by the testing client.

Thanks rvdrijst for the suggestion.
This commit is contained in:
Unai Zalakain 2013-11-19 09:44:30 +01:00 committed by Tim Graham
parent 9ae17d994b
commit 9eb16031ca
4 changed files with 30 additions and 7 deletions

View file

@ -427,6 +427,13 @@ Specifically, a ``Response`` object has the following attributes:
The request data that stimulated the response.
.. attribute:: wsgi_request
.. versionadded:: 1.7
The ``WSGIRequest`` instance generated by the test handler that
generated the response.
.. attribute:: status_code
The HTTP status of the response, as an integer. See