summaryrefslogtreecommitdiff
path: root/tests/apps
diff options
context:
space:
mode:
Diffstat (limited to 'tests/apps')
-rw-r--r--tests/apps/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/apps/tests.py b/tests/apps/tests.py
index 76bac55a83..ce39ed416c 100644
--- a/tests/apps/tests.py
+++ b/tests/apps/tests.py
@@ -367,6 +367,10 @@ class AppConfigTests(SimpleTestCase):
ac = AppConfig('label', Stub(__path__=['a', 'a']))
self.assertEqual(ac.path, 'a')
+ def test_repr(self):
+ ac = AppConfig('label', Stub(__path__=['a']))
+ self.assertEqual(repr(ac), '<AppConfig: label>')
+
class NamespacePackageAppTests(SimpleTestCase):
# We need nsapp to be top-level so our multiple-paths tests can add another