How to use the titlecase.set_small_word_list function in titlecase

To help you get started, we’ve selected a few titlecase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ppannuto / python-titlecase / titlecase / tests.py View on Github external
def test_set_small_word_list():
    assert titlecase('playing the game "words with friends"') == 'Playing the Game "Words With Friends"'
    set_small_word_list('a|an|the|with')
    assert titlecase('playing the game "words with friends"') == 'Playing the Game "Words with Friends"'