#NEWLINE# def test_fixed_subentry_of_preset( ) : #NEWLINE# #INDENT# @ ConfigScope #NEWLINE# def conf_scope( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# cfg = conf_scope ( preset = { #NEWLINE# #INDENT# 'd' : { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 2 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , fixed = { #NEWLINE# #INDENT# 'd' : { #NEWLINE# #INDENT# 'a' : 10 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( set ( cfg . keys ( ) ) == { 'd' } ) #NEWLINE# assert ( set ( cfg [ 'd' ] . keys ( ) ) == { 'a' , 'b' } ) #NEWLINE# assert ( cfg [ 'd' ] [ 'a' ] == 10 ) #NEWLINE# assert ( cfg [ 'd' ] [ 'b' ] == 2 )