'retype from thin-provision to thick-provision and replicated.'

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

    self.configuration.replication_device = [TEST_REPLICATION_DEVICE]
    self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
    self.driver.setup(self.ctxt)
    new_type = {}
    diff = {'encryption': {}, 'qos_specs': {}, 'extra_specs': {'drivers:thin_provision': ('True', 'False'), 'replication_enabled': ('<is>    False', '<is>    True')}}
    host = None
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', {})
    location = six.text_type({'vol_hex_id': TEST_VOLUME_ID})
    volume = self._create_volume(volume_type_id=vol_type.id, provider_location=location)
    mock_get_flashcopy.side_effect = [[TEST_FLASHCOPY], {}]
    (retyped, retype_model_update) = self.driver.retype(self.ctxt, volume, new_type, diff, host)
    self.assertTrue(retyped)
