Пример #1
0
 def test_text_wrap_formatter(self):
     self.assertEqual('', utils.text_wrap_formatter(None))
     self.assertEqual('', utils.text_wrap_formatter(''))
     self.assertEqual('one two three',
                      utils.text_wrap_formatter('one two three'))
     self.assertEqual(
         'one two three four five six seven eight nine ten eleven\ntwelve',
         utils.text_wrap_formatter(('one two three four five six seven '
                                    'eight nine ten eleven twelve')))
 def test_text_wrap_formatter(self):
     self.assertEqual('', utils.text_wrap_formatter(None))
     self.assertEqual('', utils.text_wrap_formatter(''))
     self.assertEqual('one two three',
                      utils.text_wrap_formatter('one two three'))
     self.assertEqual(
         'one two three four five six seven eight nine ten eleven\ntwelve',
         utils.text_wrap_formatter(
             ('one two three four five six seven '
              'eight nine ten eleven twelve')))