mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Test _split() method in test_unix_options().
This commit is contained in:
parent
34f995b3c1
commit
24a1c9cff5
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue