Premiere version : mise en route du suivi.
[auf_roundup.git] / test / test_textfmt.py
1 import unittest
2
3 from roundup.support import wrap
4
5 class WrapTestCase(unittest.TestCase):
6 def testWrap(self):
7 lorem = '''Lorem ipsum dolor sit amet, consectetuer adipiscing elit.'''
8 wrapped = '''Lorem ipsum dolor
9 sit amet,
10 consectetuer
11 adipiscing elit.'''
12 self.assertEquals(wrap(lorem, 20), wrapped)
13
14 def test_suite():
15 suite = unittest.TestSuite()
16 suite.addTest(unittest.makeSuite(WrapTestCase))
17 return suite