#NEWLINE# def test_optiontree_inheritance_flipped( self ) : #NEWLINE# #INDENT# '\n        Tests for ordering problems manifested in issue #93\n        ' #NEWLINE# options = OptionTree ( groups = [ 'group1' , 'group2' ] ) #NEWLINE# opts3 = Options ( kw3 = 'value3' ) #NEWLINE# opts4 = Options ( kw4 = 'value4' ) #NEWLINE# options . MyType . Child = { #NEWLINE# #INDENT# 'group1' : opts3 , #NEWLINE# 'group2' : opts3 , #NEWLINE# #UNINDENT# } #NEWLINE# opts1 = Options ( kw1 = 'value1' ) #NEWLINE# opts2 = Options ( kw2 = 'value2' ) #NEWLINE# options . MyType = { #NEWLINE# #INDENT# 'group1' : opts1 , #NEWLINE# 'group2' : opts2 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( options . MyType . Child . options ( 'group1' ) . kwargs , { #NEWLINE# #INDENT# 'kw1' : 'value1' , #NEWLINE# 'kw3' : 'value3' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( options . MyType . Child . options ( 'group2' ) . kwargs , { #NEWLINE# #INDENT# 'kw2' : 'value2' , #NEWLINE# 'kw4' : 'value4' , #NEWLINE# #UNINDENT# } )