#NEWLINE# def test_section_does_not_exist( self ) : #NEWLINE# #INDENT# original_contents = '[notdefault]\nfoo = bar\nbaz = bar\n\n\n\n[other "section"]\n\nfoo = bar\n' #NEWLINE# appended_contents = '[default]\nfoo = value\n' #NEWLINE# self . assert_update_config ( original_contents , { #NEWLINE# #INDENT# 'foo' : 'value' , #NEWLINE# #UNINDENT# } , ( original_contents + appended_contents ) )