I don't know what to say about this kind of assertions.... 
Usually we should design our API to first check for capabilities, before calling a method... so getHomeFolder should never been called when capabilities.get_home_folder is false.

Not the current design / docstring does not talk about this.

I think that this needs a fixme so that next time when we touch this code we will fix it... as this also needs changes in chevah/server/commons/avatar.py ...