[lang-ref] ( trim ) ( python )

def test_trim():
    # strip
    text = '\n\t  abc  def\t  \n  '
    trimmed = text.strip()
    assert trimmed == 'abc  def'