#NEWLINE# def test_with_job_id( self ) : #NEWLINE# #INDENT# self . _interpret_history_log . return_value = dict ( counters = { #NEWLINE# #INDENT# 'foo' : { #NEWLINE# #INDENT# 'bar' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# log_interpretation = dict ( step = dict ( job_id = 'job_1' ) ) #NEWLINE# self . runner . _interpret_history_log ( log_interpretation ) #NEWLINE# self . assertEqual ( log_interpretation , dict ( step = dict ( job_id = 'job_1' ) , history = dict ( counters = { #NEWLINE# #INDENT# 'foo' : { #NEWLINE# #INDENT# 'bar' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) ) #NEWLINE# self . assertFalse ( self . log . warning . called ) #NEWLINE# self . runner . _ls_history_logs . assert_called_once_with ( job_id = 'job_1' , output_dir = None ) #NEWLINE# self . _interpret_history_log . assert_called_once_with ( self . runner . fs , self . runner . _ls_history_logs . return_value )