'Test _qos_specs_from_volume
Test a case where no type was defined
and therefore no specs exist'

@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=None))
def test_qos_specs_doesnt_exist_if_no_type(self):

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