#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# opts = [ '--foo' , '--bar' ] #NEWLINE# error = InvalidOptionError ( opts ) #NEWLINE# for opt in opts : #NEWLINE# #INDENT# self . assertTrue ( ( str ( error ) . find ( opt ) >= 0 ) )