summaryrefslogtreecommitdiff
path: root/docs/testing.txt
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2008-06-16 00:34:17 +0000
committerJustin Bronn <jbronn@gmail.com>2008-06-16 00:34:17 +0000
commit842dae0ed59cc7566cf35090093222ea3a61ec79 (patch)
tree9602bc18a8d3a7da81b2009ba8e7d51276bd1841 /docs/testing.txt
parent4ec80c4333b618fc1ef2a02c7b8ca8719792f25f (diff)
gis: Merged revisions 7574-7583,7585-7586,7590-7602,7614-7615,7619-7625,7629,7632-7636 via svnmerge from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/testing.txt')
-rw-r--r--docs/testing.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/testing.txt b/docs/testing.txt
index 0ff3cce3d9..befa6979af 100644
--- a/docs/testing.txt
+++ b/docs/testing.txt
@@ -822,6 +822,10 @@ useful for testing Web applications:
that ``text`` appears in the content of the response. If ``count`` is
provided, ``text`` must occur exactly ``count`` times in the response.
+``assertNotContains(response, text, status_code=200)``
+ Asserts that a ``Response`` instance produced the given ``status_code`` and
+ that ``text`` does not appears in the content of the response.
+
``assertFormError(response, form, field, errors)``
Asserts that a field on a form raises the provided list of errors when
rendered on the form.
@@ -837,6 +841,12 @@ useful for testing Web applications:
``errors`` is an error string, or a list of error strings, that are
expected as a result of form validation.
+``assertTemplateUsed(response, template_name)``
+ Asserts that the template with the given name was used in rendering the
+ response.
+
+ The name is a string such as ``'admin/index.html'``.
+
``assertTemplateNotUsed(response, template_name)``
Asserts that the template with the given name was *not* used in rendering
the response.
@@ -846,12 +856,6 @@ useful for testing Web applications:
it redirected to ``expected_url`` (including any GET data), and the subsequent
page was received with ``target_status_code``.
-``assertTemplateUsed(response, template_name)``
- Asserts that the template with the given name was used in rendering the
- response.
-
- The name is a string such as ``'admin/index.html'``.
-
E-mail services
---------------