'Manage volume should return with no errors'

def test_manage_volume_should_return_volume_if_exists(self):

    driver = mock.MagicMock()
    driver.VERSION = 'VERSION'
    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception, driver)
    p.ibm_storage_cli = mock.MagicMock()
    p.ibm_storage_cli.cmd.vol_list.return_value.as_list = [{'name': 'WTF64', 'size': 34}]
    volume = {'name': 'WTF32'}
    p.manage_volume(volume=volume, reference={'source-name': 'WTF64'})
    self.assertEqual(34, volume['size'])
