#NEWLINE# def test_overriding_base_option_moves_it_to_the_end( self ) : #NEWLINE# #INDENT# class MyConfig ( self . CONFIG_TYPE ) : #NEWLINE# #INDENT# lucky_number = IntOption ( 'LuckyNumber' , default = 42 ) #NEWLINE# first_name = StringOption ( 'FirstName' ) #NEWLINE# last_name = StringOption ( 'LastName' ) #NEWLINE# #UNINDENT# class SubMyConfig ( MyConfig ) : #NEWLINE# #INDENT# lucky_number = IntOption ( 'LuckyNumber' , default = 9000 ) #NEWLINE# #UNINDENT# old_index = 0 #NEWLINE# for ( i , option ) in enumerate ( MyConfig . _ordered_options ) : #NEWLINE# #INDENT# if ( option . _name == 'LuckyNumber' ) : #NEWLINE# #INDENT# old_index = i #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# new_index = 0 #NEWLINE# for ( i , option ) in enumerate ( SubMyConfig . _ordered_options ) : #NEWLINE# #INDENT# if ( option . _name == 'LuckyNumber' ) : #NEWLINE# #INDENT# new_index = i #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# self . assertNotEqual ( self , new_index )