view test/test_textfmt.py @ 4249:87b3e905ae2e

fixed typos in the installation instructions (thanks Thomas Arendsen Hein) (issue 2550573)
author Bernhard Reiter <Bernhard.Reiter@intevation.de>
date Tue, 08 Sep 2009 21:38:42 +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/