def _create_an_endpoint():
    endpoint_ref = unit.new_endpoint_ref(service_id=self.service_id, interface='public', region_id=self.region_id)
    r = self.post('/endpoints', body={'endpoint': endpoint_ref})
    return r.result['endpoint']['id']
def _create_an_endpoint():
    endpoint_ref = unit.new_endpoint_ref(service_id=self.service_id, interface='public', region_id=self.region_id)
    r = self.post('/endpoints', body={'endpoint': endpoint_ref})
    return r.result['endpoint']['id']