Ejemplo 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))
Ejemplo 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))
Ejemplo n.º 3
0
 def test_full_opener_positive(self):
     client = Mock()
     client.indices.open.return_value = None
     self.assertTrue(curator.opener(client, named_indices))
Ejemplo n.º 4
0
 def test_full_opener_positive(self):
     client = Mock()
     client.indices.open.return_value = None
     self.assertTrue(curator.opener(client, named_indices))