#NEWLINE# def testErrors( self ) : #NEWLINE# #INDENT# 'A basic test of Style errors.' #NEWLINE# style1 = MyStyle ( 'Style #1' ) #NEWLINE# style1 . figure . text . size = 12 #NEWLINE# style1 . axes . text . size = 8 #NEWLINE# msg = 'Bad path failed to error' #NEWLINE# self . assertRaises ( Exception , style1 . getValue , 'this.is.a.bad.path' , msg = msg ) #NEWLINE# msg = 'Mostly bad get path failed to error' #NEWLINE# self . assertRaises ( Exception , style1 . getValue , 'figure.text.bogus' , msg = msg ) #NEWLINE# msg = 'Mostly bad set path failed to error' #NEWLINE# self . assertRaises ( Exception , style1 . setValue , 'figure.text.bogus' , 'bad' , msg = msg )