'Tests microsite.test_enable_microsites_pre_startup is not used if the feature is turned off.'

def test_enable_microsites_pre_startup(self):

    settings.DEFAULT_TEMPLATE_ENGINE['DIRS'] = [path for path in settings.DEFAULT_TEMPLATE_ENGINE['DIRS'] if (path != settings.MICROSITE_ROOT_DIR)]
    with patch.dict('django.conf.settings.FEATURES', {'USE_MICROSITES': False}):
        microsite.enable_microsites_pre_startup(log)
        self.assertNotIn(settings.MICROSITE_ROOT_DIR, settings.DEFAULT_TEMPLATE_ENGINE['DIRS'])
    with patch.dict('django.conf.settings.FEATURES', {'USE_MICROSITES': True}):
        microsite.enable_microsites_pre_startup(log)
        self.assertIn(settings.MICROSITE_ROOT_DIR, settings.DEFAULT_TEMPLATE_ENGINE['DIRS'])
