'Run a test only if we can connect to MongoDB.'

def require_connection(self, func):

    return self._require(self.connected, ('Cannot    connect    to    MongoDB    on    %s' % (self.pair,)), func=func)
