Test _split() method in test_unix_options().

This commit is contained in:
Greg Ward 2002-08-22 21:12:54 +00:00
parent 34f995b3c1
commit 24a1c9cff5

View file

@ -191,6 +191,15 @@ What a mess!
"in its long form."]
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
# in the comments