#NEWLINE# def test_save_load_file_keys( self ) : #NEWLINE# #INDENT# 'Test saving file and reloading yields identical keys\n        ' #NEWLINE# state [ 'normal_key' ] = 1 #NEWLINE# state [ 'dashed-key' ] = 3 #NEWLINE# state [ 'dotted.key' ] = 4 #NEWLINE# with tempfile . NamedTemporaryFile ( ) as temp : #NEWLINE# #INDENT# state . save ( temp . name ) #NEWLINE# state . reset_instance ( ) #NEWLINE# state . load ( temp . name , lazy = False ) #NEWLINE# for key in [ 'normal_key' , 'dashed-key' , 'dotted.key' ] : #NEWLINE# #INDENT# self . assertIn ( key , state )