#NEWLINE# def test_get_runtime_profile( self ) : #NEWLINE# #INDENT# query = '\n      SELECT COUNT(1) FROM tweets;\n    ' #NEWLINE# response = _make_query ( self . client , query , database = self . DATABASE , local = False , server_name = 'impala' ) #NEWLINE# content = json . loads ( response . content ) #NEWLINE# query_history = QueryHistory . get ( content [ 'id' ] ) #NEWLINE# wait_for_query_to_finish ( self . client , response , max = 180.0 ) #NEWLINE# resp = self . client . post ( reverse ( 'impala:get_runtime_profile' , kwargs = { #NEWLINE# #INDENT# 'query_history_id' : query_history . id , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# data = json . loads ( resp . content ) #NEWLINE# assert_equal ( 0 , data [ 'status' ] , data ) #NEWLINE# assert_true ( ( 'Execution Profile' in data [ 'profile' ] ) , data )