#NEWLINE# def test_json_hash( self ) : #NEWLINE# #INDENT# self . create_image ( 'simple/red.png' , RED ) #NEWLINE# self . create_image ( 'simple/blue.png' , BLUE ) #NEWLINE# code = self . call ( 'glue simple output --json --json-format=hash' ) #NEWLINE# self . assertEqual ( code , 0 ) #NEWLINE# self . assertExists ( 'output/simple.png' ) #NEWLINE# self . assertExists ( 'output/simple.json' ) #NEWLINE# with codecs . open ( 'output/simple.json' , 'r' , 'utf-8-sig' ) as f : #NEWLINE# #INDENT# data = json . loads ( f . read ( ) ) #NEWLINE# assert isinstance ( data [ 'frames' ] , dict )