Exemple #1
0
 def test_full_opener_negative(self):
     client = Mock()
     client.indices.open.side_effect = fake_fail
     self.assertFalse(curator.opener(client, named_indices))
 def test_full_opener_negative(self):
     client = Mock()
     client.indices.open.side_effect = fake_fail
     self.assertFalse(curator.opener(client, named_indices))
Exemple #3
0
 def test_full_opener_positive(self):
     client = Mock()
     client.indices.open.return_value = None
     self.assertTrue(curator.opener(client, named_indices))
 def test_full_opener_positive(self):
     client = Mock()
     client.indices.open.return_value = None
     self.assertTrue(curator.opener(client, named_indices))