'#24075 - Permissions shouldn\'t be created or deleted if the ContentType
or Permission models aren\'t available.'

def test_unavailable_models(self):

    state = migrations.state.ProjectState()
    with self.assertNumQueries(0):
        create_permissions(self.app_config, verbosity=0, apps=state.apps)
    state = migrations.state.ProjectState(real_apps=['contenttypes'])
    with self.assertNumQueries(0):
        create_permissions(self.app_config, verbosity=0, apps=state.apps)
