'Ensure that the serializer passes
through invalid additional properties.
It must not complains with i.e. non-string.'

def test_show_invalid_additional_property(self):

    serializer = glance.api.v2.images.ResponseSerializer()
    self.fixture.extra_properties['marx'] = 123
    expected = {'id': UUID2, 'name': 'image-2', 'status': 'queued', 'visibility': 'private', 'protected': False, 'checksum': 'ca425b88f047ce8ec45ee90e813ada91', 'marx': 123, 'tags': [], 'size': 1024, 'virtual_size': 3072, 'created_at': ISOTIME, 'updated_at': ISOTIME, 'self': ('/v2/images/%s' % UUID2), 'file': ('/v2/images/%s/file' % UUID2), 'schema': '/v2/schemas/image', 'owner': '2c014f32-55eb-467d-8fcb-4bd706012f81', 'min_ram': None, 'min_disk': None, 'disk_format': None, 'container_format': None}
    response = webob.Response()
    serializer.show(response, self.fixture)
    self.assertEqual(expected, jsonutils.loads(response.body))
