Returns the correct writing of a compound name, respecting the first letters of the names in upper case. Passes all original unittests.
>>> import capitalize_name
>>> capitalize_name.capitalize('AV. DOM PEDRO DE ALMEIDA I')
'Av. Dom Pedro de Almeida I'$ capitalizename "AV. DOM PEDRO DE ALMEIDA I"
Av. Dom Pedro de Almeida IUse pip or easy_install:
$ pip install capitalize-name
Use py.test to run unittests