Mercurial > p > roundup > code
view test/test_textfmt.py @ 4997:57adf2c4c40f
Cleanup MANIFEST.in (issue2550714)
Remove entries for files that no longer exist or have been moved to
other locations.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Sat, 21 Feb 2015 00:01:00 +1100 |
| 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
