def test_simple(self): s = "foo\n" assert utils.clean_hanging_newline(s) == "foo" assert utils.clean_hanging_newline("foo") == "foo"
def test_clean_hanging_newline(): s = "foo\n" assert utils.clean_hanging_newline(s) == "foo" assert utils.clean_hanging_newline("foo") == "foo"