Mercurial > p > roundup > code
view test/test_textfmt.py @ 3956:bb2722260e47
Fixes from Martin v. Löwis:
- Messages created through the web are now given an in-reply-to header
when email out to nosy
- Nosy messages now include more information about issues (all link
properties with a "name" attribute)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 08 Jan 2008 20:55:26 +0000 |
| 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
