diff options
author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2017-01-26 17:16:13 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-27 09:55:08 -0500 |
commit | 110f4bb6a2600e3b466ee6fa0c938c4bc54ea53f (patch) | |
tree | 9f7bacca02e8988f7fa162d9318b7511eeead9b4 /tests/apps | |
parent | d9aeee205d93b12c96da449c64c1f17ca8786086 (diff) | |
download | django-110f4bb6a2600e3b466ee6fa0c938c4bc54ea53f.tar.gz |
Tested AppConfig.__repr__().
Diffstat (limited to 'tests/apps')
-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 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 |