Mercurial > p > roundup > code
view test/test_textfmt.py @ 3931:65b5fffac46b
"fix" to allow tests to be run using the twisted project's "trial" runner
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 25 Oct 2007 05:24:50 +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
