'Tests members listing for existing images.'

def test_get_image_members(self):

    req = webob.Request.blank('/rpc')
    req.method = 'POST'
    cmd = [{'command': 'image_member_find', 'kwargs': {'image_id': UUID2}}]
    req.body = jsonutils.dump_as_bytes(cmd)
    res = req.get_response(self.api)
    self.assertEqual(http.OK, res.status_int)
    memb_list = jsonutils.loads(res.body)[0]
    self.assertEqual(0, len(memb_list))
