def update(self, human_resource, name): body = { "human_resource": { "name": name, }, } return self._put( "/human_resources/%s" % base.getid(human_resource), body, "human_resource")
def get(self, crud_resource): return super(CrudResourceManager, self).get( crud_resource_id=base.getid(crud_resource))
def get(self, human_resource): return self._get( "/human_resources/%s" % base.getid(human_resource), "human_resource")
def test_getid(self): class TmpObject(base.Resource): id = "4" self.assertEqual(base.getid(TmpObject(None, {})), "4")