diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2011-12-17 02:03:56 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2011-12-17 02:03:56 +0000 |
| commit | 2494dd25f509c15d185c69a810b82188ab689390 (patch) | |
| tree | 9902c4c940801d8bb6330976180ae431cf5e3fc8 /docs | |
| parent | a848ef4e570c937325651f6864c650bc1fe9e137 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index 181b4ffd51..23963657d6 100644 --- a/docs/topics/testing.txt +++ b/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") self.cat = 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(self.cat.speak(), '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 label:: - $ ./manage.py test animals.AnimalTestCase.testFluffyAnimals + $ ./manage.py test animals.AnimalTestCase.test_animals_can_speak .. versionadded:: 1.2 The ability to select individual doctests was added. |
