Mercurial > p > roundup > code
view test/test_textfmt.py @ 4254:8d3582271a99
Minor update of doc/developers.txt...
...to point to the new resources on www.roundup-tracker.org:
- pointed to the new tracker
- removed references to CVS
- removed "macros": _Roundup CVS, _feature tracker
- hinted at http://www.roundup-tracker.org/code.html and the mailinglist
instead of duplicating information
| author | Bernhard Reiter <Bernhard.Reiter@intevation.de> |
|---|---|
| date | Thu, 17 Sep 2009 09:54:49 +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
