Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.3.X] Fixes #15595 -- emphasize the benefits of django.test.TestCas…

…e. Thanks for the patch Shawn Milochik

Backport of r16214 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9a4e5112b2384f1ec1db837b41d1ce9792143754 1 parent 5c08cda
Chris Beaven authored May 11, 2011

Showing 1 changed file with 12 additions and 2 deletions. Show diff stats Hide diff stats

  1. 14  docs/topics/testing.txt
14  docs/topics/testing.txt
@@ -36,7 +36,8 @@ two test frameworks that ship in the Python standard library. The two
36 36
 frameworks are:
37 37
 
38 38
     * **Unit tests** -- tests that are expressed as methods on a Python class
39  
-      that subclasses ``unittest.TestCase``. For example::
  39
+      that subclasses ``unittest.TestCase`` or Django's customized
  40
+      :class:`TestCase`. For example::
40 41
 
41 42
           import unittest
42 43
 
@@ -1102,7 +1103,16 @@ Converting a normal ``unittest.TestCase`` to a Django ``TestCase`` is easy:
1102 1103
 just change the base class of your test from ``unittest.TestCase`` to
1103 1104
 ``django.test.TestCase``. All of the standard Python unit test functionality
1104 1105
 will continue to be available, but it will be augmented with some useful
1105  
-additions.
  1106
+additions, including:
  1107
+
  1108
+    * Automatic loading of fixtures.
  1109
+
  1110
+    * Wraps each test in a transaction.
  1111
+
  1112
+    * Creates a TestClient instance.
  1113
+
  1114
+    * Django-specific assertions for testing for things
  1115
+      like redirection and form errors.
1106 1116
 
1107 1117
 .. class:: TransactionTestCase()
1108 1118
 

0 notes on commit 9a4e511

Please sign in to comment.
Something went wrong with that request. Please try again.