[Python-checkins] python/dist/src/Lib/test test_textwrap.py,1.2,1.3
gward@users.sourceforge.net
gward@users.sourceforge.net
Thu, 22 Aug 2002 11:37:52 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8774
Modified Files:
test_textwrap.py
Log Message:
Add comment header block.
Remove some useless comments (redundant, or info presumably available in
PyUnit docs).
Index: test_textwrap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_textwrap.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_textwrap.py 22 Aug 2002 18:35:49 -0000 1.2
--- test_textwrap.py 22 Aug 2002 18:37:50 -0000 1.3
***************
*** 1,2 ****
--- 1,12 ----
+ #
+ # Test script for the textwrap module.
+ #
+ # Original tests written by Greg Ward <gward@python.net>.
+ # Converted to PyUnit by Peter Hansen <peter@engcorp.com>.
+ # Currently maintained by Greg Ward.
+ #
+ # $Id$
+ #
+
import unittest
from test import test_support
***************
*** 25,41 ****
-
- # Note: a new TestCase instance is created before running each
- # test method.
class WrapTestCase(WrapperTestCase):
- # called before each test method
def setUp(self):
self.wrapper = TextWrapper(width=45, fix_sentence_endings=True)
-
- # Note: any methods that start with "test" are called automatically
- # by the unittest framework.
-
def test_simple(self):
'''Simple case: just words, spaces, and a bit of punctuation.'''
--- 35,43 ----
***************
*** 43,47 ****
t = "Hello there, how are you this fine day? I'm glad to hear it!"
- # bizarre formatting intended to increase maintainability
subcases = [
( (t, 12), [
--- 45,48 ----
***************
*** 78,82 ****
"""
- # bizarre formatting intended to increase maintainability
expect = [
"This is a paragraph that already has line",
--- 79,82 ----
***************
*** 99,103 ****
t = "This is a\nshort paragraph."
- # bizarre formatting intended to increase maintainability
subcases = [
( (t, 20), [
--- 99,102 ----
***************
*** 159,163 ****
How *do* you spell that odd word, anyways?
'''
- # bizarre formatting intended to increase maintainability
subcases = [
( (t, 30), [
--- 158,161 ----