Explanation for a failed assert -- the a and b arguments are List[str]
(a, b)
| 62 | |
| 63 | |
| 64 | def _make_explanation(a, b): |
| 65 | """Explanation for a failed assert -- the a and b arguments are List[str]""" |
| 66 | return ["--- actual / +++ expected"] + [ |
| 67 | line.strip("\n") for line in difflib.ndiff(a, b) |
| 68 | ] |
| 69 | |
| 70 | |
| 71 | class Output: |