'Call ``PATCH /endpoints/{endpoint_id}``.'

def test_update_endpoint(self):

    ref = unit.new_endpoint_ref(service_id=self.service_id, interface='public', region_id=self.region_id)
    del ref['id']
    r = self.patch(('/endpoints/%(endpoint_id)s' % {'endpoint_id': self.endpoint_id}), body={'endpoint': ref})
    ref['enabled'] = True
    self.assertValidEndpointResponse(r, ref)
