'Test single element serializer with backport.'

@mock.patch('cinder.objects.base.LOG.debug')
def test_serialize_entity_basic_backport(self, log_debug_mock):

    serializer = objects.base.CinderObjectSerializer('1.5')
    primitive = serializer.serialize_entity(self.context, self.obj)
    self.assertEqual('1.1', primitive['versioned_object.version'])
    data = primitive['versioned_object.data']
    self.assertNotIn('integer', data)
    self.assertEqual('text', data['text'])
    log_debug_mock.assert_called_once_with(self.BACKPORT_MSG, {'obj_name': 'ChildObject', 'src_vers': '1.2', 'dst_vers': '1.1'})
