'Tests replacing image members raises right exception'

def test_replace_members(self):

    self.api = test_utils.FakeAuthMiddleware(rserver.API(self.mapper), is_admin=False)
    fixture = dict(member_id='pattieblack')
    body = jsonutils.dump_as_bytes(dict(image_memberships=fixture))
    self.get_api_response_ext(http.UNAUTHORIZED, method='PUT', body=body, url=('/images/%s/members' % UUID2), content_type='json')
