'test handle_created_vol_props
returns replication enables if replication info is True'

@mock.patch('cinder.volume.utils.group_get_by_id', mock.MagicMock())
@mock.patch('cinder.volume.utils.is_group_a_cg_snapshot_type', mock.MagicMock(return_value=False))
def test_handle_created_vol_properties_returns_vol_update(self):

    driver = mock.MagicMock()
    driver.VERSION = 'VERSION'
    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception, driver)
    xiv_replication.VolumeReplication = mock.MagicMock()
    grp = testutils.create_group(self.ctxt, name='bla', group_type_id='1')
    volume = testutils.create_volume(self.ctxt, display_name='bla')
    volume.group = grp
    ret_val = p.handle_created_vol_properties({'enabled': True}, volume)
    self.assertEqual(ret_val, {'replication_status': 'enabled'})
