#NEWLINE# def test_json_storage( self ) : #NEWLINE# #INDENT# from kivy.storage.jsonstore import JsonStore #NEWLINE# from tempfile import mkstemp #NEWLINE# from os import unlink , close #NEWLINE# try : #NEWLINE# #INDENT# ( tmpfd , tmpfn ) = mkstemp ( '.json' ) #NEWLINE# close ( tmpfn ) #NEWLINE# self . _do_store_test_empty ( JsonStore ( tmpfn ) ) #NEWLINE# self . _do_store_test_filled ( JsonStore ( tmpfn ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# unlink ( tmpfn )