'Test that raises CommandError for disabled feature flag.'

@patch.dict('django.conf.settings.FEATURES', {'ENABLE_TEAMS': False})
def test_teams_search_flag_disabled_raises_command_error(self):

    with self.assertRaisesRegexp(CommandError, '.*ENABLE_TEAMS    must    be    enabled.*'):
        call_command('reindex_course_team', self.team1.team_id)
