summaryrefslogtreecommitdiff
path: root/tests/apps
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2014-01-24 20:07:14 -0700
committerCarl Meyer <carl@oddbird.net>2014-01-24 20:07:14 -0700
commit29ddae7436e84f4713c7babeabdf9a1fa62d6543 (patch)
tree05f883c76540aca8bc2459fa52be5bc4c45e4bc7 /tests/apps
parentf5f556dba3c89333d4533e0603de79b62083d807 (diff)
Fixed #21871 -- Fixed Apps.is_installed() for apps with custom label.
Thanks Aymeric for design discussion.
Diffstat (limited to 'tests/apps')
-rw-r--r--tests/apps/apps.py1
-rw-r--r--tests/apps/tests.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/apps/apps.py b/tests/apps/apps.py
index a2c49fcbff..7faa63e435 100644
--- a/tests/apps/apps.py
+++ b/tests/apps/apps.py
@@ -10,6 +10,7 @@ class MyAdmin(AppConfig):
class MyAuth(AppConfig):
name = 'django.contrib.auth'
+ label = 'myauth'
verbose_name = "All your password are belong to us."
diff --git a/tests/apps/tests.py b/tests/apps/tests.py
index ad5fd0d609..139bc06a66 100644
--- a/tests/apps/tests.py
+++ b/tests/apps/tests.py
@@ -109,6 +109,7 @@ class AppsTests(TestCase):
@override_settings(INSTALLED_APPS=SOME_INSTALLED_APPS)
def test_is_installed(self):
self.assertTrue(apps.is_installed('django.contrib.admin'))
+ self.assertTrue(apps.is_installed('django.contrib.auth'))
self.assertTrue(apps.is_installed('django.contrib.staticfiles'))
self.assertFalse(apps.is_installed('django.contrib.webdesign'))