Mercurial > p > roundup > code
view test/test_textfmt.py @ 4966:c355541aaae3
test_mailgw: removed superflous openpgp test data, which was copied to test/gpgmelib.py with 4542:46239c21a1eb but not removed.
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Mon, 02 Mar 2015 23:05:09 +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
