Author: adrian
Date: 2010-10-27 16:50:58 -0500 (Wed, 27 Oct 2010)
New Revision: 14368
Modified:
django/trunk/docs/topics/testing.txt
Log:
Edited docs/topics/testing.txt change from [14058]
Modified: django/trunk/docs/topics/testing.txt
===================================================================
--- django/trunk/docs/topics/testing.txt 2010-10-27 21:47:22 UTC (rev
14367)
+++ django/trunk/docs/topics/testing.txt 2010-10-27 21:50:58 UTC (rev
14368)
@@ -1174,22 +1174,21 @@
.. 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:
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.