'GET & HEAD /policies/%(policy_id}/endpoints.'

def test_list_endpoints_for_policy(self):

    url = ('/policies/%(policy_id)s/OS-ENDPOINT-POLICY/endpoints' % {'policy_id': self.policy['id']})
    self.put(((url + '/') + self.endpoint['id']))
    r = self.get(url)
    self.assertValidEndpointListResponse(r, ref=self.endpoint)
    self.assertThat(r.result.get('endpoints'), matchers.HasLength(1))
    self.head(url, expected_status=http_client.OK)
