def test_capitalize(self): text = Protected('mary ', 'had ', 'a little lamb') assert six.text_type(text.capitalize()) == 'mary had a little lamb'
def test_capitalize(self): text = Protected('mary ', 'had ', 'a little lamb') assert unicode(text.capitalize()) == 'mary had a little lamb'
def test_capfirst(self): text = Protected('mary ', 'had ', 'a Little Lamb') assert unicode(text.capitalize()) == 'mary had a Little Lamb'