diff options
| author | Peter Inglesby <peter.inglesby@gmail.com> | 2015-05-12 10:02:23 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-05-22 11:08:25 -0400 |
| commit | 0688a7946afac04123309afd29c95319a8d59392 (patch) | |
| tree | 01c9b48d0d39d2538d288c34c5fa1baa91f00dd1 /tests/apps/tests.py | |
| parent | 70faaccc3eef916e1b1ba5c2e93799074e66a5c3 (diff) | |
Fixed #24776 -- Improved apps.get_app_config() error message on fully-qualified package names.
Diffstat (limited to 'tests/apps/tests.py')
| -rw-r--r-- | tests/apps/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/apps/tests.py b/tests/apps/tests.py index e7e5c53534..2837e78aff 100644 --- a/tests/apps/tests.py +++ b/tests/apps/tests.py @@ -121,6 +121,10 @@ class AppsTests(SimpleTestCase): with self.assertRaises(LookupError): apps.get_app_config('webdesign') + msg = "No installed app with label 'django.contrib.auth'. Did you mean 'myauth'" + with self.assertRaisesMessage(LookupError, msg): + apps.get_app_config('django.contrib.auth') + @override_settings(INSTALLED_APPS=SOME_INSTALLED_APPS) def test_is_installed(self): """ |
