'Lists all hosts.'

def list_hosts(self, **params):

    url = 'os-hosts'
    if params:
        url += ('?%s' % urllib.urlencode(params))
    (resp, body) = self.get(url)
    body = json.loads(body)
    self.expected_success(200, resp.status)
    return rest_client.ResponseBody(resp, body)
