'Tests replacing image members'

def test_replace_members_positive(self):

    test_router = router.API(self.mapper)
    self.api = test_utils.FakeAuthMiddleware(test_router, is_admin=True)
    fixture = [dict(member_id='pattieblack', can_share=False)]
    req = webob.Request.blank(('/images/%s/members' % UUID2))
    req.method = 'PUT'
    req.content_type = 'application/json'
    req.body = jsonutils.dump_as_bytes(dict(memberships=fixture))
    res = req.get_response(self.api)
    self.assertEqual(http_client.NO_CONTENT, res.status_int)
