Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #17364 -- Fixed typos in topics/testing.txt. Thanks, movielady

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2494dd25f509c15d185c69a810b82188ab689390 1 parent a848ef4
Adrian Holovaty authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  docs/topics/testing.txt
7  docs/topics/testing.txt
@@ -85,7 +85,7 @@ module defines tests in class-based approach.
85 85
     :mod:`django.utils.unittest` module alias. If you are using Python
86 86
     2.7, or you have installed unittest2 locally, Django will map the
87 87
     alias to the installed version of the unittest library. Otherwise,
88  
-    Django will use it's own bundled version of unittest2.
  88
+    Django will use its own bundled version of unittest2.
89 89
 
90 90
     To use this alias, simply use::
91 91
 
@@ -120,7 +120,8 @@ Here is an example :class:`unittest.TestCase` subclass::
120 120
             self.lion = Animal.objects.create(name="lion", sound="roar")
121 121
             self.cat = Animal.objects.create(name="cat", sound="meow")
122 122
 
123  
-        def testSpeaking(self):
  123
+        def test_animals_can_speak(self):
  124
+            """Animals that can speak are correctly identified"""
124 125
             self.assertEqual(self.lion.speak(), 'The lion says "roar"')
125 126
             self.assertEqual(self.cat.speak(), 'The cat says "meow"')
126 127
 
@@ -288,7 +289,7 @@ And it gets even more granular than that! To run a *single* test
288 289
 method inside a test case, add the name of the test method to the
289 290
 label::
290 291
 
291  
-    $ ./manage.py test animals.AnimalTestCase.testFluffyAnimals
  292
+    $ ./manage.py test animals.AnimalTestCase.test_animals_can_speak
292 293
 
293 294
 .. versionadded:: 1.2
294 295
    The ability to select individual doctests was added.

0 notes on commit 2494dd2

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