Mercurial > p > roundup > code
view test/test_textfmt.py @ 4850:6998ad77841e
Fix bug in SQL generation
Fix subtle bug when sorting by a Link that contains a Multilink from
which we also search for an attribute. In that case the LEFT OUTER JOIN
clause was missing in generated SQL.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 18 Dec 2013 09:02:40 +0100 |
| 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
