Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.6.x] Documentation -- Clarified use of 'view' in test client intro…

…duction.

Backport of 2e926b0 from master
  • Loading branch information...
commit bf9382fb02c54a5991fb2eb91322befe21177a49 1 parent 8d02c37
@marfire marfire authored timgraham committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 docs/topics/testing/overview.txt
View
7 docs/topics/testing/overview.txt
@@ -346,7 +346,8 @@ Some of the things you can do with the test client are:
everything from low-level HTTP (result headers and status codes) to
page content.
-* Test that the correct view is executed for a given URL.
+* See the chain of redirects (if any) and check the URL and status code at
+ each step.
* Test that a given request is rendered by a given Django template, with
a template context that contains certain values.
@@ -355,8 +356,8 @@ Note that the test client is not intended to be a replacement for Selenium_ or
other "in-browser" frameworks. Django's test client has a different focus. In
short:
-* Use Django's test client to establish that the correct view is being
- called and that the view is collecting the correct context data.
+* Use Django's test client to establish that the correct template is being
+ rendered and that the template is passed the correct context data.
* Use in-browser frameworks like Selenium_ to test *rendered* HTML and the
*behavior* of Web pages, namely JavaScript functionality. Django also
Please sign in to comment.
Something went wrong with that request. Please try again.