#NEWLINE# def test_missing_process_state( self , config , process_store , flask_client ) : #NEWLINE# #INDENT# config [ 'alive' ] = { #NEWLINE# #INDENT# 'process_store_required' : ( 'model' , 'data' ) , #NEWLINE# #UNINDENT# } #NEWLINE# process_store [ 'model' ] = Mock ( __metadata__ = { #NEWLINE# #INDENT# 'hello' : 'is it me' , #NEWLINE# #UNINDENT# } ) #NEWLINE# resp = flask_client . get ( 'alive' ) #NEWLINE# assert ( flask_client . status_code == 503 ) #NEWLINE# resp_data = json . loads ( resp . get_data ( as_text = True ) ) #NEWLINE# assert ( resp_data [ 'model' ] [ 'metadata' ] == { #NEWLINE# #INDENT# 'hello' : 'is it me' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( resp_data [ 'data' ] == 'N/A' )