(old_func, new_func)
| 94 | (old_func6, new_func6), |
| 95 | ]) |
| 96 | def test_deprecate_help_indentation(old_func, new_func): |
| 97 | _compare_docs(old_func, new_func) |
| 98 | # Ensure we don't mess up the indentation |
| 99 | for knd, func in (('old', old_func), ('new', new_func)): |
| 100 | for li, line in enumerate(func.__doc__.split('\n')): |
| 101 | if li == 0: |
| 102 | assert line.startswith(' ') or not line.startswith(' '), knd |
| 103 | elif line: |
| 104 | assert line.startswith(' '), knd |
| 105 | |
| 106 | |
| 107 | def _compare_docs(old_func, new_func): |
nothing calls this directly
no test coverage detected