[lang-ref] ( expand_tabs ) ( python )

def test_expand_tabs():
    # s.expandtabs
    s = '\t \ta'
    r = s.expandtabs(4)
    assert r == (' ' * 8 + 'a')