Changeset 6147
- Timestamp:
- 09/13/07 20:21:34 (1 year ago)
- Files:
-
- django/trunk/docs/testing.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/testing.txt
r6039 r6147 570 570 The ``get()`` and ``post()`` methods both return a ``Response`` object. This 571 571 ``Response`` object is *not* the same as the ``HttpResponse`` object returned 572 Django views; th is object is simpler andhas some additional data useful for573 test s.572 Django views; the test response object has some additional data useful for 573 test code to verify. 574 574 575 575 Specifically, a ``Response`` object has the following attributes: … … 583 583 ``content`` The body of the response, as a string. This is the final 584 584 page content as rendered by the view, or any error 585 message (such as the URL for a 302 redirect).585 message. 586 586 587 587 ``context`` The template ``Context`` instance that was used to render … … 591 591 ``context`` will be a list of ``Context`` 592 592 objects, in the order in which they were rendered. 593 594 ``headers`` The HTTP headers of the response. This is a dictionary. 593 595 594 596 ``request`` The request data that stimulated the response.
