#NEWLINE# def test_list_default( self ) : #NEWLINE# #INDENT# self . conf . register_opt ( ListOpt ( 'foo' , default = [ 'bar' ] ) ) #NEWLINE# paths = self . create_tempfiles ( [ ( 'test.conf' , '[DEFAULT]\n' ) ] ) #NEWLINE# self . conf ( [ '--config-file' , paths [ 0 ] ] ) #NEWLINE# self . assertTrue ( hasattr ( paths . conf , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . foo , [ 'bar' ] )