def test_find_next_indent(): for code, exp in indentation_samples: res = isp.find_next_indent(code) msg = "{!r} != {!r} (expected)\n Code: {!r}".format(res, exp, code) assert res == exp, msg