Mercurial > p > roundup > code
view test/test_textfmt.py @ 3873:4d1928ce993e
more small userauditor changes and a unittest
- changes the "roles" loop per alex's suggestion
- figured out (I think) why vim wasn't obeying the modeline and
corrected it
- removed trailing whitespace per alex
- synchronized classic/minimal templates (boy I wish CVS allowed symlinks)
- added unit tests for userauditor.py: checks timezone, email, and role
handling
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Fri, 31 Aug 2007 15:57:47 +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
