'Test backend naming
Test if the naming convention is correct
when getting the right specs with qos type'

def test_qos_class_name_contains_qos_type(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.perf_class_list.return_value.as_list = []
    perf_name = p._check_perf_class_on_backend({'bw': '100', 'type': 'independent'})
    self.assertEqual('cinder-qos_bw_100_type_independent', perf_name)
