'Test related elements serialization with no backport.'

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

    serializer = objects.base.CinderObjectSerializer('1.6')
    primitive = serializer.serialize_entity(self.context, self.parent_list)
    self.assertEqual('1.1', primitive['versioned_object.version'])
    parent = primitive['versioned_object.data']['objects'][0]
    self.assertEqual('1.1', parent['versioned_object.version'])
    child = parent['versioned_object.data']['child']
    self.assertEqual('1.2', child['versioned_object.version'])
    log_debug_mock.assert_not_called()
