diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2010-09-13 05:08:21 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2010-09-13 05:08:21 +0000 |
| commit | 3d99526fc2b6b6d25d889ce206ea26c7036944b8 (patch) | |
| tree | 3f5a2942230fff17f70cd9e2d5eee54437104878 | |
| parent | 767cf13d7654b92ce398bb142a908b3e0c461564 (diff) | |
Fix a couple of typos in test names and descriptions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/modeltests/validation/tests.py | 4 | ||||
| -rw-r--r-- | tests/regressiontests/multiple_database/tests.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/modeltests/validation/tests.py b/tests/modeltests/validation/tests.py index 00273931c7..4dff410d54 100644 --- a/tests/modeltests/validation/tests.py +++ b/tests/modeltests/validation/tests.py @@ -33,7 +33,7 @@ class BaseModelValidationTests(ValidationTestCase): mtv = ModelToValidate(number=10, name='Some Name', parent_id=parent.pk) self.assertEqual(None, mtv.full_clean()) - def test_limitted_FK_raises_error(self): + def test_limited_FK_raises_error(self): # The limit_choices_to on the parent field says that a parent object's # number attribute must be 10, so this should fail validation. parent = ModelToValidate.objects.create(number=11, name='Other Name') @@ -60,7 +60,7 @@ class BaseModelValidationTests(ValidationTestCase): mtv = ModelToValidate(number=10, name='Some Name', url='http://www.djangoproject.com/') self.assertEqual(None, mtv.full_clean()) # This will fail if there's no Internet connection - def test_text_greater_that_charfields_max_length_eaises_erros(self): + def test_text_greater_that_charfields_max_length_raises_erros(self): mtv = ModelToValidate(number=10, name='Some Name'*100) self.assertFailsValidation(mtv.full_clean, ['name',]) diff --git a/tests/regressiontests/multiple_database/tests.py b/tests/regressiontests/multiple_database/tests.py index 7f66ea3bcf..c688a8c64e 100644 --- a/tests/regressiontests/multiple_database/tests.py +++ b/tests/regressiontests/multiple_database/tests.py @@ -24,7 +24,7 @@ class QueryTestCase(TestCase): multi_db = True def test_db_selection(self): - "Check that querysets will use the default databse by default" + "Check that querysets will use the default database by default" self.assertEquals(Book.objects.db, DEFAULT_DB_ALIAS) self.assertEquals(Book.objects.all().db, DEFAULT_DB_ALIAS) @@ -1221,7 +1221,7 @@ class RouterTestCase(TestCase): mark = Person.objects.using('default').create(pk=2, name="Mark Pilgrim") - # Now save back onto the usual databse. + # Now save back onto the usual database. # This simulates master/slave - the objects exist on both database, # but the _state.db is as it is for all other tests. pro.save(using='default') |
