'deleting secret.'

@mock.patch('nova.virt.libvirt.host.Host.find_secret')
def test_delete_secret(self, mock_find_secret):

    secret = mock.MagicMock()
    mock_find_secret.return_value = secret
    expected = [mock.call('rbd', 'rbdvol'), mock.call().undefine()]
    self.host.delete_secret('rbd', 'rbdvol')
    self.assertEqual(expected, mock_find_secret.mock_calls)
    mock_find_secret.return_value = None
    self.host.delete_secret('rbd', 'rbdvol')
