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