(obj, expected)
| 27 | |
| 28 | |
| 29 | def _assert_print(obj, expected): |
| 30 | if not isinstance(obj, str): |
| 31 | obj = obj.script(verbose_expr=True) |
| 32 | obj = obj.strip() |
| 33 | # compare line by line in case there is trailing whitespace in the _middle_ |
| 34 | for obj_line, expected_line in zip(obj.splitlines(), expected.strip().splitlines()): |
| 35 | assert obj_line.strip() == expected_line.strip(), "\n" + obj |
| 36 | |
| 37 | |
| 38 | def test_function(): |
no test coverage detected
searching dependent graphs…