'clone from source volume to a bigger target volume.'

@mock.patch.object(eventlet, 'sleep')
@mock.patch.object(helper.DS8KCommonHelper, 'get_flashcopy')
@mock.patch.object(helper.DS8KCommonHelper, 'change_lun')
def test_create_cloned_volume2(self, mock_change_lun, mock_get_flashcopy, mock_sleep):

    self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
    self.driver.setup(self.ctxt)
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', {})
    location = six.text_type({'vol_hex_id': TEST_VOLUME_ID})
    src_vol = self._create_volume(volume_type_id=vol_type.id, provider_location=location)
    location = six.text_type({'vol_hex_id': None})
    tgt_vol = self._create_volume(volume_type_id=vol_type.id, provider_location=location, size=2)
    mock_get_flashcopy.side_effect = [[TEST_FLASHCOPY], {}]
    self.driver.create_cloned_volume(tgt_vol, src_vol)
    self.assertTrue(mock_change_lun.called)
