Mercurial > p > roundup > code
view test/test_textfmt.py @ 4892:29bc5484969a
Improved website/issues/extensions/local_replace.py and hg copied it over to the devel and responsive templates.
* Added a substitution for the default hg output format.
* Used a base url variable for the two hg substitutions.
| author | Bernhard Reiter <bernhard@intevation.de> |
|---|---|
| date | Sat, 26 Apr 2014 23:13:25 +0200 |
| 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
