diff options
| author | Unai Zalakain <unai@gisa-elkartea.org> | 2013-11-19 09:44:30 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-01-09 18:50:03 -0500 |
| commit | 9eb16031ca837624433c49646289b50f9566a25d (patch) | |
| tree | 25d846a41ab1b00349c6a63a18b6bc258641fbe2 /docs/topics/testing | |
| parent | 9ae17d994b1b0dee952c2e64f3727ce7a6ffb398 (diff) | |
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.
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/tools.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index d97644fb72..680c1dd17c 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -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 |
