'Make sure volumes already owned by cinder are flagged as unsafe.'

def test_get_manageable_volumes_already_managed(self):

    cinder_vol = fake_volume.fake_volume_obj(mock.MagicMock())
    cinder_vol.id = VOLUME_ID
    cinder_vol.provider_id = PROVIDER_ID
    cinders_vols = [cinder_vol]
    expected_refs = deepcopy(MANAGEABLE_SCALEIO_VOL_REFS)
    expected_refs[0]['reference'] = {'source-id': PROVIDER_ID}
    expected_refs[0]['safe_to_manage'] = False
    expected_refs[0]['reason_not_safe'] = 'Volume    already    managed.'
    expected_refs[0]['cinder_id'] = VOLUME_ID
    self._test_get_manageable_things(expected_refs=expected_refs, cinder_objs=cinders_vols)
