#NEWLINE# def testNoDefault( self ) : #NEWLINE# #INDENT# decoder = _PassThroughDecoder ( option = _OPTION ) #NEWLINE# self . assertIs ( decoder . required , True ) #NEWLINE# with self . assertRaises ( AssertionError ) as cm : #NEWLINE# #INDENT# self . default #NEWLINE# #UNINDENT# self . assertEqual ( str ( cm . exception ) , 'Attempted to get the default value of required config option "test_option".' )