summaryrefslogtreecommitdiff
path: root/tests/admin_autodiscover/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_autodiscover/tests.py')
-rw-r--r--tests/admin_autodiscover/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/admin_autodiscover/tests.py b/tests/admin_autodiscover/tests.py
index b15060ade8..66de74f2a5 100644
--- a/tests/admin_autodiscover/tests.py
+++ b/tests/admin_autodiscover/tests.py
@@ -7,11 +7,12 @@ class AdminAutoDiscoverTests(SimpleTestCase):
Test for bug #8245 - don't raise an AlreadyRegistered exception when using
autodiscover() and an admin.py module contains an error.
"""
+
def test_double_call_autodiscover(self):
# The first time autodiscover is called, we should get our real error.
- with self.assertRaisesMessage(Exception, 'Bad admin module'):
+ with self.assertRaisesMessage(Exception, "Bad admin module"):
admin.autodiscover()
# Calling autodiscover again should raise the very same error it did
# the first time, not an AlreadyRegistered error.
- with self.assertRaisesMessage(Exception, 'Bad admin module'):
+ with self.assertRaisesMessage(Exception, "Bad admin module"):
admin.autodiscover()