#NEWLINE# @ fake_tasks ( ) #NEWLINE# def test_action_log_updating_for_tasks( self ) : #NEWLINE# #INDENT# meta1 = self . env . generate_interfaces_in_meta ( 2 ) #NEWLINE# mac1 = meta1 [ 'interfaces' ] [ 0 ] [ 'mac' ] #NEWLINE# meta2 = self . env . generate_interfaces_in_meta ( 2 ) #NEWLINE# mac2 = meta2 [ 'interfaces' ] [ 0 ] [ 'mac' ] #NEWLINE# self . env . create ( cluster_kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , nodes_kwargs = [ { #NEWLINE# #INDENT# 'api' : True , #NEWLINE# 'meta' : meta1 , #NEWLINE# 'mac' : mac1 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'api' : True , #NEWLINE# 'meta' : meta2 , #NEWLINE# 'mac' : mac2 , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# task = self . env . launch_verify_networks ( ) #NEWLINE# self . assertEqual ( task . status , consts . TASK_STATUSES . ready ) #NEWLINE# action_logs = objects . ActionLogCollection . filter_by ( None , action_type = consts . ACTION_TYPES . nailgun_task ) #NEWLINE# for al in action_logs : #NEWLINE# #INDENT# task_status = al . additional_info [ 'ended_with_status' ] #NEWLINE# self . assertEqual ( task_status , consts . TASK_STATUSES . ready )