https://raw.githubusercontent.com/python-babel/babel/master/tests/test_util.py
