コード例 #1
0
def test_comment_out_line_comments_indented_option():
    line = '    enabled: true'

    assert module._comment_out_line(line) == '    #enabled: true'
コード例 #2
0
def test_comment_out_line_comments_section_name():
    line = 'figgy-pudding:'

    assert module._comment_out_line(line) == '#' + line
コード例 #3
0
def test_comment_out_line_skips_blank_line():
    line = '    \n'

    assert module._comment_out_line(line) == line
コード例 #4
0
def test_comment_out_line_skips_already_commented_out_line():
    line = '    # foo'

    assert module._comment_out_line(line) == line
コード例 #5
0
ファイル: test_generate.py プロジェクト: jbacker/borgmatic
def test_comment_out_line_comments_twice_indented_option():
    line = '        - item'

    assert module._comment_out_line(line) == '        # - item'