Mercurial > p > roundup > code
view test/test_textfmt.py @ 4976:b198e50dc7dc
issued2550877 fixed, the tests adapted to the more precise header comparison. Added a hint to the code how headers are handled.
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Thu, 12 Mar 2015 22:11:20 +0100 |
| 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
