#NEWLINE# def test_background_task_completed( self ) : #NEWLINE# #INDENT# task = { #NEWLINE# #INDENT# 'command' : 'sleep 1' , #NEWLINE# 'background' : True , #NEWLINE# #UNINDENT# } #NEWLINE# blocking_task = { #NEWLINE# #INDENT# 'command' : 'sleep 2' , #NEWLINE# 'background' : False , #NEWLINE# #UNINDENT# } #NEWLINE# self . obj . parameters . merge ( { #NEWLINE# #INDENT# 'prepare' : [ self , blocking_task ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . obj . prepare ( ) #NEWLINE# self . obj . post_process ( ) #NEWLINE# self . assertIn ( 'Task was finished with exit code 0: sleep 1' , self . log_recorder . debug_buff . getvalue ( ) )