Skip to content

Commit f3be89c

Browse files
committed
Add failing test for unicode handling in python 2.
1 parent ff44043 commit f3be89c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

titlecase/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def abbreviation(word, **kwargs):
304304
assert titlecase(s) == 'A Simple Tcp and Udp Wrapper'
305305
assert titlecase(s, callback=abbreviation) == 'A Simple TCP and UDP Wrapper'
306306
assert titlecase(s.upper(), callback=abbreviation) == 'A Simple TCP and UDP Wrapper'
307+
assert titlecase(u'crème brûlée', callback=lambda x, **kw: x.upper()) == u'CRÈME BRÛLÉE'
307308

308309

309310
def test_set_small_word_list():

0 commit comments

Comments
 (0)