def METHOD_NAME(self, mocked_es_ping):
    """Test `ElasticSearchDataStore.connect` when ping fails"""
    mocked_es_ping.return_value = False
    connection = ElasticSearchDataStore.connect(**self.elasticsearch_engine_settings)
    self.assertIs(connection, None)