Mercurial > p > roundup > code
view test/test_textfmt.py @ 3875:64a12bd91fc0
allow searching for issues with empty topics
[SF#610787] points out that the classic template doesn't allow a way
to search for issues that don't have a topic. Priority, status, and
assigned do, so I've remedied the oversight by adding a new option to
Topic.
This closes [SF#610787].
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Fri, 31 Aug 2007 17:51:59 +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
