| 616 | 'anyways?']) |
| 617 | |
| 618 | def test_nobreak_long(self): |
| 619 | # Test with break_long_words disabled |
| 620 | self.wrapper.break_long_words = 0 |
| 621 | self.wrapper.width = 30 |
| 622 | expect = ['Did you say', |
| 623 | '"supercalifragilisticexpialidocious?"', |
| 624 | 'How *do* you spell that odd', |
| 625 | 'word, anyways?' |
| 626 | ] |
| 627 | result = self.wrapper.wrap(self.text) |
| 628 | self.check(result, expect) |
| 629 | |
| 630 | # Same thing with kwargs passed to standalone wrap() function. |
| 631 | result = wrap(self.text, width=30, break_long_words=0) |
| 632 | self.check(result, expect) |
| 633 | |
| 634 | def test_max_lines_long(self): |
| 635 | self.check_wrap(self.text, 12, |