diff options
author | Collin Anderson <cmawebsite@gmail.com> | 2015-01-14 13:40:31 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-01-14 14:51:05 -0500 |
commit | 2d5da57f4856656677d82d4a56f5914f3cc431d8 (patch) | |
tree | 18bfd1809390820bafba5ada113baa344da50a51 /tests/model_meta | |
parent | 28308078f397d1de36fd0da417ac7da2544ba12d (diff) | |
download | django-2d5da57f4856656677d82d4a56f5914f3cc431d8.tar.gz |
Fixed incorrect error message in Options.get_fields()
Diffstat (limited to 'tests/model_meta')
-rw-r--r-- | tests/model_meta/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_meta/tests.py b/tests/model_meta/tests.py index 31ffa4ac93..1a0c2de9f3 100644 --- a/tests/model_meta/tests.py +++ b/tests/model_meta/tests.py @@ -169,7 +169,7 @@ class GetFieldByNameTests(OptionsBaseTests): self.assertEqual(field_info[1:], (None, True, False)) self.assertIsInstance(field_info[0], GenericRelation) - def test_get_fields_only_searaches_forward_on_apps_not_ready(self): + def test_get_fields_only_searches_forward_on_apps_not_ready(self): opts = Person._meta # If apps registry is not ready, get_field() searches over only # forward fields. @@ -179,8 +179,8 @@ class GetFieldByNameTests(OptionsBaseTests): self.assertTrue(opts.get_field('data_abstract')) msg = ( "Person has no field named 'relating_baseperson'. The app " - "cache isn't ready yet, so if this is a forward field, it " - "won't be available yet." + "cache isn't ready yet, so if this is an auto-created related " + "field, it won't be available yet." ) # 'data_abstract' is a reverse field, and will raise an exception with self.assertRaisesMessage(FieldDoesNotExist, msg): |