(self, tw)
| 113 | assert lines[0] == class="st">"-" * (60 - win32) + class="st">"\n" |
| 114 | |
| 115 | def test_sep_with_title(self, tw) -> None: |
| 116 | tw.sep(class="st">"-", class="st">"hello", fullwidth=60) |
| 117 | lines = tw.getlines() |
| 118 | assert len(lines) == 1 |
| 119 | assert lines[0] == class="st">"-" * 26 + class="st">" hello " + class="st">"-" * (27 - win32) + class="st">"\n" |
| 120 | |
| 121 | def test_sep_longer_than_width(self, tw) -> None: |
| 122 | tw.sep(class="st">"-", class="st">"a" * 10, fullwidth=5) |