'retype from replicated to unreplicated.'

@mock.patch.object(eventlet, 'sleep')
def test_retype_from_replicated_to_unreplicated(self, 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': {'replication_enabled': ('<is>    True', '<is>    False')}}
    host = None
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', {'replication_enabled': '<is>    True'})
    location = six.text_type({'vol_hex_id': TEST_VOLUME_ID})
    data = json.dumps({TEST_TARGET_DS8K_IP: {'vol_hex_id': TEST_VOLUME_ID}})
    metadata = [{'key': 'data_type', 'value': 'FB    512'}]
    volume = self._create_volume(volume_type_id=vol_type.id, provider_location=location, replication_driver_data=data, volume_metadata=metadata)
    (retyped, retype_model_update) = self.driver.retype(self.ctxt, volume, new_type, diff, host)
    self.assertTrue(retyped)
