Пример #1
0
 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'
Пример #3
0
 def test_capfirst(self):
     text = Protected('mary ', 'had ', 'a Little Lamb')
     assert unicode(text.capitalize()) == 'mary had a Little Lamb'