#NEWLINE# def test_locked_loading( self ) : #NEWLINE# #INDENT# fd = os . fdopen ( self . tmpfd , 'w' ) #NEWLINE# fd . write ( '{}' ) #NEWLINE# fd . close ( ) #NEWLINE# json_file = JsonFile ( self . tmpfile ) #NEWLINE# self . assertEqual ( json_file . data , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , msg = 'Value is not deserialized correctly' ) #NEWLINE# fd = open ( self . tmpfile , 'w+' ) #NEWLINE# fd . write ( '[]' ) #NEWLINE# fd . close ( ) #NEWLINE# json_file . refresh ( ) #NEWLINE# self . assertEqual ( json_file . data , [ ] , msg = 'Value is not refreshed correctly' )