[lang-ref] ( trim_trailing_whitespace ) ( python )

def test_trim_trailing_whitespace():
    # rstrip
    text = '\n\t  abc  def\t  \n  '
    trimmed = text.rstrip()
    assert trimmed == '\n\t  abc  def'