コード例 #1
0
ファイル: test_api_commands.py プロジェクト: ferki/curator
 def test_full_opener_negative(self):
     client = Mock()
     client.indices.open.side_effect = fake_fail
     self.assertFalse(curator.opener(client, named_indices))
コード例 #2
0
ファイル: test_api_commands.py プロジェクト: servomac/curator
 def test_full_opener_negative(self):
     client = Mock()
     client.indices.open.side_effect = fake_fail
     self.assertFalse(curator.opener(client, named_indices))
コード例 #3
0
ファイル: test_api_commands.py プロジェクト: ferki/curator
 def test_full_opener_positive(self):
     client = Mock()
     client.indices.open.return_value = None
     self.assertTrue(curator.opener(client, named_indices))
コード例 #4
0
ファイル: test_api_commands.py プロジェクト: servomac/curator
 def test_full_opener_positive(self):
     client = Mock()
     client.indices.open.return_value = None
     self.assertTrue(curator.opener(client, named_indices))