コード例 #1
0
 def _init_ssh_client(self, host, username, password):
     return netapp_api.SSHUtil(host=host,
                               username=username,
                               password=password)
コード例 #2
0
ファイル: test_api.py プロジェクト: openstack/cinder
 def setUp(self):
     super(SSHUtilTests, self).setUp()
     self.mock_object(netapp_api.SSHUtil, '_init_ssh_pool')
     self.sshutil = netapp_api.SSHUtil('127.0.0.1', 'fake_user',
                                       'fake_password')