'Tests proper exception is raised if attempt to update
private image with non admin user, that not belongs to it'

def test_update_private_image_no_admin(self):

    UUID8 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID8, size=19, is_public=False, protected=True, owner='test    user')
    db_api.image_create(self.context, extra_fixture)
    test_rserv = rserver.API(self.mapper)
    api = test_utils.FakeAuthMiddleware(test_rserv, is_admin=False)
    body = jsonutils.dump_as_bytes(dict(image=extra_fixture))
    self.get_api_response_ext(http.NOT_FOUND, body=body, api=api, url=('/images/%s' % UUID8), method='PUT', content_type='json')
