#NEWLINE# def test_default_value_is_used_when_no_value_in_config( self ) : #NEWLINE# #INDENT# class MyConfig ( self . CONFIG_TYPE ) : #NEWLINE# #INDENT# lucky_number = IntOption ( 'LuckyNumber' , default = 42 ) #NEWLINE# #UNINDENT# c = MyConfig . get_instance ( ) #NEWLINE# c . del_value_for_option_name ( 'LuckyNumber' ) #NEWLINE# self . assertEqual ( c . lucky_number , 42 )