(self)
| 734 | |
| 735 | |
| 736 | def test_initial_indent(self): |
| 737 | # Test initial_indent parameter |
| 738 | |
| 739 | expect = [" This paragraph will be filled,", |
| 740 | "first without any indentation, and then", |
| 741 | "with some (including a hanging indent)."] |
| 742 | result = wrap(self.text, 40, initial_indent=" ") |
| 743 | self.check(result, expect) |
| 744 | |
| 745 | expect = "\n".join(expect) |
| 746 | result = fill(self.text, 40, initial_indent=" ") |
| 747 | self.check(result, expect) |
| 748 | |
| 749 | |
| 750 | def test_subsequent_indent(self): |