예제 #1
0
def test_comment_skip_common_indent():
    prefix = CommentPrefix('#')
    got = prefix.comment([' foo', '  bar'])
    assert got == [' #foo', ' # bar']
예제 #2
0
def test_comment_idempotent():
    prefix = CommentPrefix('#')
    got = prefix.comment(['#foo', '#bar'])
    assert got == ['#foo', '#bar']