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