1
0
mirror of https://github.com/django/django.git synced 2025-01-30 12:09:25 +00:00

Fixed tests introduced for #15915

The tests didn't clean up properly. The commit that introduced the
errors was 8c427448d53ec0d860e1669f35deed73d0240ba1.

Thanks to Trac alias rizumu for spotting this.
This commit is contained in:
Anssi Kääriäinen 2012-10-11 23:58:50 +03:00
parent 501d793398
commit b5f224e8e2

View File

@ -173,10 +173,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
class PermissionDuplicationTestCase(TestCase):
def setUp(self):
self._original_user_permission = models.User._meta.permissions
self._original_permissions = models.Permission._meta.permissions[:]
def tearUp(self):
models.User._meta.permissions = self._original_user_permissions
def tearDown(self):
models.Permission._meta.permissions = self._original_permissions
def test_duplicated_permissions(self):
"""