Beispiel #1
0
 def test_word_wrap2_should_wrap_on_partial_line(self):
     wrapped_content = se.word_wrap2(word='abcde', wrap_at=2)
     self.assertEqual('ab\ncd\ne', wrapped_content)
Beispiel #2
0
 def test_word_wrap2_should_return_the_word_if_column_wrap_number_is_equal_to_the_length_of_word(
         self):
     wrapped_content = se.word_wrap2(word='abcd', wrap_at=4)
     self.assertEqual('abcd', wrapped_content)
Beispiel #3
0
 def test_word_wrap2_should_return_one_line_wrap(self):
     wrapped_content = se.word_wrap2(word='abcd', wrap_at=2)
     self.assertEqual('ab\ncd', wrapped_content)
Beispiel #4
0
 def test_word_wrap2_should_return_the_word_if_column_wrap_number_is_greater_than_length_of_word(
         self):
     wrapped_content = se.word_wrap2(word='a', wrap_at=100)
     self.assertEqual('a', wrapped_content)