diff --git docs/topics/testing.txt docs/topics/testing.txt
index fb9f6e5..83cd4ed 100644
|
|
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 | |
… |
… |
Converting a normal ``unittest.TestCase`` to a Django ``TestCase`` is easy:
|
1098 | 1099 | just change the base class of your test from ``unittest.TestCase`` to |
1099 | 1100 | ``django.test.TestCase``. All of the standard Python unit test functionality |
1100 | 1101 | will continue to be available, but it will be augmented with some useful |
1101 | | additions. |
| 1102 | additions, including: |
| 1103 | |
| 1104 | * Automatic loading of fixtures. |
| 1105 | |
| 1106 | * Wraps each test in a transaction. |
| 1107 | |
| 1108 | * Creates a TestClient instance. |
| 1109 | |
| 1110 | * Django-specific assertions for testing for things |
| 1111 | like redirection and form errors. |
1102 | 1112 | |
1103 | 1113 | .. class:: TransactionTestCase() |
1104 | 1114 | |