'Test update image members raises right exception'

def test_update_all_image_members_non_existing_image_id(self):

    fixture = dict(member_id='test1')
    req = webob.Request.blank(('/images/%s/members' % _gen_uuid()))
    req.method = 'PUT'
    self.context.tenant = 'test2'
    req.content_type = 'application/json'
    req.body = jsonutils.dump_as_bytes(dict(image_memberships=fixture))
    res = req.get_response(self.api)
    self.assertEqual(http.NOT_FOUND, res.status_int)
