I think we prefer docstrings with "".

I'd recommend a simple unittest of this method alone (in common/djangoapps/util/tests).