diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2010-10-27 21:50:58 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2010-10-27 21:50:58 +0000 |
| commit | 1356947fad649f2ead8cc977162661016a773263 (patch) | |
| tree | bf7a7b4080f336548213f9dbb36a801581fda60e /docs | |
| parent | 19a089ce761bd402fc1b94906b48338bb4ee1ac3 (diff) | |
Edited docs/topics/testing.txt change from [14058]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index f9f6cc83da..3c5eb59211 100644 --- a/docs/topics/testing.txt +++ b/docs/topics/testing.txt @@ -1174,22 +1174,21 @@ Customizing the test client .. attribute:: TestCase.client_class -If you want to use a different Client class (for example, a subclass -with customized behavior), you can use the -:attr:`~TestCase.client_class` class attribute to specify a custom -``Client`` class in your test case:: +If you want to use a different ``Client`` class (for example, a subclass +with customized behavior), use the :attr:`~TestCase.client_class` class +attribute:: from django.test import TestCase from django.test.client import Client class MyTestClient(Client): - # .. specialized methods for your environment .. + # Specialized methods for your environment... class MyTest(TestCase): client_class = MyTestClient def test_my_stuff(self): - # .. Here self.client is an instance of MyTestClient .. + # Here self.client is an instance of MyTestClient... .. _topics-testing-fixtures: |
