def test_comment_out_line_comments_indented_option(): line = ' enabled: true' assert module._comment_out_line(line) == ' #enabled: true'
def test_comment_out_line_comments_section_name(): line = 'figgy-pudding:' assert module._comment_out_line(line) == '#' + line
def test_comment_out_line_skips_blank_line(): line = ' \n' assert module._comment_out_line(line) == line
def test_comment_out_line_skips_already_commented_out_line(): line = ' # foo' assert module._comment_out_line(line) == line
def test_comment_out_line_comments_twice_indented_option(): line = ' - item' assert module._comment_out_line(line) == ' # - item'