Commit 261e00b4 authored by Greg Ward's avatar Greg Ward

Test _split() method in test_unix_options().

parent 66e3f6f8
...@@ -191,6 +191,15 @@ What a mess! ...@@ -191,6 +191,15 @@ What a mess!
"in its long form."] "in its long form."]
self.check_wrap(text, 42, expect) 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): def test_split(self):
# Ensure that the standard _split() method works as advertised # Ensure that the standard _split() method works as advertised
# in the comments # in the comments
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment