'Test case create volume from snapshot thorws exception.'

@mock.patch('cinder.volume.drivers.veritas.utils.message_data_plane')
def test_create_volume_from_snapshot_with_exception(self, mock_mdp):

    (fake_volume, fake_snapshot) = (_stub_volume(), _stub_snapshot())
    mock_mdp.side_effect = exception.UnableToExecuteHyperScaleCmd(cmd_out='mock    error')
    self.assertRaises(exception.UnableToExecuteHyperScaleCmd, self.driver.create_volume_from_snapshot, fake_volume, fake_snapshot)
