Fixed typo in auth management test.

This commit is contained in:
Jon Dufresne 2016-08-28 19:20:35 -07:00 committed by GitHub
parent 5d978c4621
commit 488b3d2b38
1 changed files with 3 additions and 3 deletions

View File

@ -595,16 +595,16 @@ class CreatePermissionsTests(TestCase):
content_type=permission_content_type,
).count(), 1)
def test_unvailable_models(self):
def test_unavailable_models(self):
"""
#24075 - Permissions shouldn't be created or deleted if the ContentType
or Permission models aren't available.
"""
state = migrations.state.ProjectState()
# Unvailable contenttypes.ContentType
# Unavailable contenttypes.ContentType
with self.assertNumQueries(0):
create_permissions(self.app_config, verbosity=0, apps=state.apps)
# Unvailable auth.Permission
# Unavailable auth.Permission
state = migrations.state.ProjectState(real_apps=['contenttypes'])
with self.assertNumQueries(0):
create_permissions(self.app_config, verbosity=0, apps=state.apps)