view test/test_textfmt.py @ 4016:96a5e0845adb

now I understand the comment in that method... ...after my change it failed for python2.5. Now it works for all of them.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Thu, 11 Sep 2008 19:10:30 +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

Roundup Issue Tracker: http://roundup-tracker.org/