use .splitlines() in tests