def test_bloom_full_negative(self): client = Mock() client.info.return_value = {'version': {'number': '1.3.4'} } client.cluster.state.return_value = open_index client.indices.put_settings.side_effect = fake_fail self.assertFalse(curator.bloom(client, named_index))
def test_bloom_full_positive(self): client = Mock() client.info.return_value = {'version': {'number': '1.3.4'} } client.cluster.state.return_value = open_index client.indices.put_settings.return_value = None self.assertTrue(curator.bloom(client, named_index))