summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-08 03:45:33 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-08 03:45:33 +0000
commitaf846c0b8b53aac731a39d11bfe5dac48d9da9c0 (patch)
treec89ee3b3d37f17f254fc1d19b038c33c2832bece /docs
parentb72c7d0517f2aaf7dadcad94116ba8aefea3e61a (diff)
Removed a bunch of trailing whitespace. Don't people realise whitespace is a
scarce resource, not to be wasted? git-svn-id: http://code.djangoproject.com/svn/django/trunk@5169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/testing.txt30
1 files changed, 15 insertions, 15 deletions
diff --git a/docs/testing.txt b/docs/testing.txt
index ea2d9d1b75..2152cae98e 100644
--- a/docs/testing.txt
+++ b/docs/testing.txt
@@ -468,30 +468,30 @@ that can be useful in testing the behavior of web sites.
times in the content of the response.
``assertFormError(response, form, field, errors)``
- Assert that a field on a form raised the provided list of errors when
- rendered on the form.
-
- ``form`` is the name the form object was given in the template context.
-
- ``field`` is the name of the field on the form to check. If ``field``
+ Assert that a field on a form raised the provided list of errors when
+ rendered on the form.
+
+ ``form`` is the name the form object was given in the template context.
+
+ ``field`` is the name of the field on the form to check. If ``field``
has a value of ``None``, non-field errors will be checked.
-
- ``errors`` is an error string, or a list of error strings, that are
- expected as a result of form validation.
-
+
+ ``errors`` is an error string, or a list of error strings, that are
+ expected as a result of form validation.
+
``assertTemplateNotUsed(response, template_name)``
- Assert that the template with the given name was *not* used in rendering
+ Assert that the template with the given name was *not* used in rendering
the response.
-
+
``assertRedirects(response, expected_path)``
Assert that the response received redirects the browser to the provided
- path, and that the expected_path can be retrieved.
+ path, and that the expected_path can be retrieved.
``assertTemplateUsed(response, template_name)``
Assert that the template with the given name was used in rendering the
response.
-
-
+
+
Running tests
=============