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