'Test Create volume with replication and multiple targets'

@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_proxy.XIVProxy._get_qos_specs', mock.MagicMock(return_value=None))
@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_proxy.XIVProxy._get_extra_specs', mock.MagicMock(return_value=TEST_EXTRA_SPECS_REPL))
def test_create_volume_with_replication_multiple_targets(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()
    volume = testutils.create_volume(self.ctxt, size=16, display_name='WTF32', volume_type_id='b3fcacb5-fbd8-4394-8c00-06853bc13929')
    volume.group = None
    ex = getattr(p, '_get_exception')()
    self.assertRaises(ex, p.create_volume, volume)
