[lang-ref] ( trim_last ) ( python )
def test_trim_last():
# rstrip
text = '\n\t abc def\t \n '
trimmed = text.rstrip()
assert trimmed == '\n\t abc def'
def test_trim_last():
# rstrip
text = '\n\t abc def\t \n '
trimmed = text.rstrip()
assert trimmed == '\n\t abc def'