'test create_consistenygroup when replication is set'

@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_proxy.client.XCLIClient')
def test_create_consistencygroup_with_replication(self, mock_xcli):

    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception)
    p.ibm_storage_cli = mock.MagicMock()
    group_obj = self._create_test_group()
    vol_type = objects.VolumeType(context=self.ctxt, name='volume_type_rep', extra_specs={'replication_enabled': '<is>    True', 'replication_type': 'sync'})
    group_obj.volume_types = objects.VolumeTypeList(context=self.ctxt, objects=[vol_type])
    model_update = p.create_group({}, group_obj)
    self.assertEqual('available', model_update['status'])
