示例#1
0
def test_dedent():
    s = '''
        foo foo

            bar
            foobar
    test
    '''
    assert dedent(s) == '\nfoo foo\n\nbar\nfoobar\ntest\n'
示例#2
0
def test_dedent():
    s = '''
        foo foo

            bar
            foobar
    test
    '''
    assert dedent(s) == '\nfoo foo\n\nbar\nfoobar\ntest\n'
示例#3
0
def test_dedent():
    s = """
        foo foo

            bar
            foobar
    test
    """
    assert dedent(s) == "\nfoo foo\n\nbar\nfoobar\ntest\n"