[lang-ref] ( trim_indent ) ( python )

def test_trim_indent():
    # textwrap.dedent
    import textwrap
    text = '''\
        aaa
            bbb
        ccc
'''

    e = '''\
aaa
    bbb
ccc
'''
    a = textwrap.dedent(text)
    assert a == e