Mercurial > p > roundup > code
view test/test_textfmt.py @ 4677:3cf77c30697e
issue2550783 describe the change in devel template/schema.py
in Changes.txt that I forgot originally.
| author | rouilj |
|---|---|
| date | Sun, 25 Nov 2012 18:07:58 -0500 |
| parents | f35ece8f8ff7 |
| children | 364c54991861 |
line wrap: on
line source
import unittest from roundup.support import wrap class WrapTestCase(unittest.TestCase): def testWrap(self): lorem = '''Lorem ipsum dolor sit amet, consectetuer adipiscing elit.''' wrapped = '''Lorem ipsum dolor sit amet, consectetuer adipiscing elit.''' self.assertEquals(wrap(lorem, 20), wrapped) def test_suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(WrapTestCase)) return suite
