(self)
| 343 | "what-d'you-|call-|it.".split('|')) |
| 344 | |
| 345 | def test_funky_parens (self): |
| 346 | # Second part of SF bug #596434: long option strings inside |
| 347 | # parentheses. |
| 348 | self.check_split("foo (--option) bar", |
| 349 | ["foo", " ", "(--option)", " ", "bar"]) |
| 350 | |
| 351 | # Related stuff -- make sure parens work in simpler contexts. |
| 352 | self.check_split("foo (bar) baz", |
| 353 | ["foo", " ", "(bar)", " ", "baz"]) |
| 354 | self.check_split("blah (ding dong), wubba", |
| 355 | ["blah", " ", "(ding", " ", "dong),", |
| 356 | " ", "wubba"]) |
| 357 | |
| 358 | def test_drop_whitespace_false(self): |
| 359 | # Check that drop_whitespace=False preserves whitespace. |
nothing calls this directly
no test coverage detected