Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a848ef4 commit 2494dd25f509c15d185c69a810b82188ab689390 @adrianholovaty adrianholovaty committed Dec 17, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 docs/topics/testing.txt
@@ -85,7 +85,7 @@ module defines tests in class-based approach.
:mod:`django.utils.unittest` module alias. If you are using Python
2.7, or you have installed unittest2 locally, Django will map the
alias to the installed version of the unittest library. Otherwise,
- Django will use it's own bundled version of unittest2.
+ Django will use its own bundled version of unittest2.
To use this alias, simply use::
@@ -120,7 +120,8 @@ Here is an example :class:`unittest.TestCase` subclass::
self.lion = Animal.objects.create(name="lion", sound="roar") = Animal.objects.create(name="cat", sound="meow")
- def testSpeaking(self):
+ def test_animals_can_speak(self):
+ """Animals that can speak are correctly identified"""
self.assertEqual(self.lion.speak(), 'The lion says "roar"')
self.assertEqual(, 'The cat says "meow"')
@@ -288,7 +289,7 @@ And it gets even more granular than that! To run a *single* test
method inside a test case, add the name of the test method to the
- $ ./ test animals.AnimalTestCase.testFluffyAnimals
+ $ ./ test animals.AnimalTestCase.test_animals_can_speak
.. versionadded:: 1.2
The ability to select individual doctests was added.

0 comments on commit 2494dd2

Please sign in to comment.