'Run a test only if the server is running with auth enabled.'

def require_auth(self, func):

    return self.check_auth_with_sharding(self._require(self.auth_enabled, 'Authentication    is    not    enabled    on    the    server', func=func))
