[Python-checkins] python/dist/src/Lib/test test_textwrap.py,1.11,1.12
gward@users.sourceforge.net
gward@users.sourceforge.net
Thu, 22 Aug 2002 14:12:56 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv14186
Modified Files:
test_textwrap.py
Log Message:
Test _split() method in test_unix_options().
Index: test_textwrap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_textwrap.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** test_textwrap.py 22 Aug 2002 21:10:07 -0000 1.11
--- test_textwrap.py 22 Aug 2002 21:12:54 -0000 1.12
***************
*** 192,195 ****
--- 192,204 ----
self.check_wrap(text, 42, expect)
+ # Again, all of the above can be deduced from _split().
+ text = "the -n option, or --dry-run or --dryrun"
+ result = self.wrapper._split(text)
+ expect = ["the", " ", "-n", " ", "option,", " ", "or", " ",
+ "--dry-", "run", " ", "or", " ", "--dryrun"]
+ self.assertEquals(result, expect,
+ "\nexpected %r\n"
+ "but got %r" % (expect, result))
+
def test_split(self):
# Ensure that the standard _split() method works as advertised