def test_ssh_key(self, mock_create, mock_delete): k8s_context = KubernetesContext() k8s_context.init(context_cfg) k8s_context._set_ssh_key() k8s_context._delete_ssh_key() self.assertTrue(mock_create.called) self.assertTrue(mock_delete.called)
def test_ssh_key(self, mock_create, mock_delete, mock_open, mock_utils, mock_resources, mock_paramiko): k8s_context = KubernetesContext() k8s_context.init(context_cfg) k8s_context._set_ssh_key() k8s_context._delete_ssh_key() self.assertTrue(mock_create.called) self.assertTrue(mock_delete.called)