'Test manage_volume
Manage volume get size should raise exception
if volume does not exist'

def test_manage_volume_get_size_should_raise_exception_if_not_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 = []
    ex = getattr(p, '_get_exception')()
    self.assertRaises(ex, p.manage_volume_get_size, volume={'name': 'WTF32'}, reference={'source-name': 'WTF64'})
