~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_utextwrap.py

  • Committer: Vincent Ladeuil
  • Date: 2011-05-05 07:34:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5874.
  • Revision ID: v.ladeuil+lp@free.fr-20110505073410-e3fq4p5jo7b03k6k
Use a dedicated class for 'fill' tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        self.assertEqual(list(_str_D),
70
70
                         utextwrap.wrap(_str_D, 3, break_long_words=False))
71
71
 
 
72
class TestUTextFill(tests.TestCase):
 
73
 
72
74
    def test_fill_simple(self):
73
75
        # Test only can call fill() because it's just '\n'.join(wrap(text)).
74
76
        self.assertEqual("%s\n%s" % (_str_D[:2], _str_D[2:]),