Tested AppConfig.__repr__().

This commit is contained in:
Anton Samarchyan 2017-01-26 17:16:13 -05:00 committed by Tim Graham
parent d9aeee205d
commit 110f4bb6a2
1 changed files with 4 additions and 0 deletions

View File

@ -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