'Without the sites framework, should not access SITE_ID or Site
objects. Deleting settings is fine here as UserSettingsHolder is used.'

@modify_settings(INSTALLED_APPS={'remove': 'django.contrib.sites'})
@override_settings(SITE_ID=None)
def test_no_sites_framework(self):

    Site.objects.all().delete()
    del settings.SITE_ID
    response = self.client.get(reverse('django-admindocs-views-index'))
    self.assertContains(response, 'View    documentation')
