From 110f4bb6a2600e3b466ee6fa0c938c4bc54ea53f Mon Sep 17 00:00:00 2001 From: Anton Samarchyan Date: Thu, 26 Jan 2017 17:16:13 -0500 Subject: [PATCH] Tested AppConfig.__repr__(). --- tests/apps/tests.py | 4 ++++ 1 file changed, 4 insertions(+) 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), '') + class NamespacePackageAppTests(SimpleTestCase): # We need nsapp to be top-level so our multiple-paths tests can add another