#NEWLINE# def test_doesnt_leave_leftovers( self ) : #NEWLINE# #INDENT# container = ConfigurationContainer ( { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 'test' , #NEWLINE# 'e' : 3 , #NEWLINE# #UNINDENT# } , configuration_schema ) #NEWLINE# new_config = container . to_dict ( mask_secrets = True ) #NEWLINE# new_config . pop ( 'e' ) #NEWLINE# container . update ( new_config ) #NEWLINE# self . assertEqual ( container [ 'a' ] , 1 ) #NEWLINE# self . assertEqual ( 'test' , container [ 'b' ] ) #NEWLINE# self . assertNotIn ( 'e' , container )