def step_impl(ctx): # you should check `actual` when tests fail actual = util.read_printable(ctx.pty).splitlines() wanted = ctx.text.splitlines() expect(actual[-len(wanted):]).to(equal(wanted))
def step_impl(ctx): actual = util.read_printable(ctx.pty).splitlines() wanted = ctx.text.splitlines() expect(actual[-len(wanted):]).to(equal(wanted))