(self, textin)
| 17 | '''Parent class with utility methods for textwrap tests.''' |
| 18 | |
| 19 | def show(self, textin): |
| 20 | if isinstance(textin, list): |
| 21 | result = [] |
| 22 | for i in range(len(textin)): |
| 23 | result.append(" %d: %r" % (i, textin[i])) |
| 24 | result = "\n".join(result) if result else " no lines" |
| 25 | elif isinstance(textin, str): |
| 26 | result = " %s\n" % repr(textin) |
| 27 | return result |
| 28 | |
| 29 | |
| 30 | def check(self, result, expect): |