summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2002-08-22 18:37:50 (GMT)
committerGreg Ward <gward@python.net>2002-08-22 18:37:50 (GMT)
commit3dc94e14c0a355f921a330ef32d93e2d30d17d25 (patch)
tree83c3a40c88f970c211132ecf901c308f11067c12
parentf67657811cc625e2f8201fa3bc65410ae592a953 (diff)
downloadcpython-3dc94e14c0a355f921a330ef32d93e2d30d17d25.zip
cpython-3dc94e14c0a355f921a330ef32d93e2d30d17d25.tar.gz
cpython-3dc94e14c0a355f921a330ef32d93e2d30d17d25.tar.bz2
Add comment header block.
Remove some useless comments (redundant, or info presumably available in PyUnit docs).
-rw-r--r--Lib/test/test_textwrap.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py
index b4810db..f36213c 100644
--- a/Lib/test/test_textwrap.py
+++ b/Lib/test/test_textwrap.py
@@ -1,3 +1,13 @@
+#
+# 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
@@ -24,25 +34,16 @@ class WrapperTestCase(unittest.TestCase):
self.show(result), self.show(expect)))
-
-# 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.'''
t = "Hello there, how are you this fine day? I'm glad to hear it!"
- # bizarre formatting intended to increase maintainability
subcases = [
( (t, 12), [
"Hello there,",
@@ -77,7 +78,6 @@ Some lines are \ttabbed too.
What a mess!
"""
- # bizarre formatting intended to increase maintainability
expect = [
"This is a paragraph that already has line",
"breaks. But some of its lines are much",
@@ -98,7 +98,6 @@ What a mess!
t = "This is a\nshort paragraph."
- # bizarre formatting intended to increase maintainability
subcases = [
( (t, 20), [
"This is a short",
@@ -158,7 +157,6 @@ What a mess!
Did you say "supercalifragilisticexpialidocious?"
How *do* you spell that odd word, anyways?
'''
- # bizarre formatting intended to increase maintainability
subcases = [
( (t, 30), [
'Did you say "supercalifragilis',