#NEWLINE# def test_override2( self ) : #NEWLINE# #INDENT# config = Config ( ) #NEWLINE# config . Foo . a = 1 #NEWLINE# config . Bar . b = 'or' #NEWLINE# config . Bar . c = 10.0 #NEWLINE# c = Bar ( config = config ) #NEWLINE# self . assertEquals ( c . a , config . Foo . a ) #NEWLINE# self . assertEquals ( c . b , 'gotit' ) #NEWLINE# self . assertEquals ( c . c , config . Bar . c ) #NEWLINE# c = Bar ( a = 2 , b = 'and' , c = 20.0 , config = config ) #NEWLINE# self . assertEquals ( c . a , 2 ) #NEWLINE# self . assertEquals ( c . b , 'and' ) #NEWLINE# self . assertEquals ( c . c , 20.0 )