'Test a case where type was found and qos were found'

@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_proxy.XIVProxy._check_storage_version_for_qos_support', mock.MagicMock(return_value=True))
@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_proxy.XIVProxy._get_qos_specs', mock.MagicMock(return_value='specs'))
def test_qos_specs_exist_if_type_exists(self):

    driver = mock.MagicMock()
    driver.VERSION = 'VERSION'
    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception, driver)
    volume = {'name': 'bla', 'volume_type_id': '7'}
    specs = p._qos_specs_from_volume(volume)
    self.assertEqual('specs', specs)
