#NEWLINE# def _check_client_dashboard_state( self , client , non_empty_status ) : #NEWLINE# #INDENT# response = client . get ( '/orchestra/api/interface/dashboard_tasks/' ) #NEWLINE# returned = json . loads ( response . content . decode ( 'utf-8' ) ) #NEWLINE# for ( status , val ) in returned [ 'tasks' ] . items ( ) : #NEWLINE# #INDENT# if ( status == non_empty_status ) : #NEWLINE# #INDENT# self . assertTrue ( ( len ( non_empty_status ) > 0 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertTrue ( ( len ( val ) == 0 ) )