#NEWLINE# def test_task_log_get_all_targeted( self ) : #NEWLINE# #INDENT# task_name = 'fake_task_name' #NEWLINE# begin = 'fake_begin' #NEWLINE# end = 'fake_end' #NEWLINE# host = 'fake_host' #NEWLINE# state = 'fake_state' #NEWLINE# self . mox . StubOutWithMock ( self . tgt_db_inst , 'task_log_get_all' ) #NEWLINE# self . tgt_db_inst . task_log_get_all ( self . ctxt , task_name , begin , end , host = host , state = state ) . AndReturn ( [ 'fake_result' ] ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# response = self . src_msg_runner . task_log_get_all ( self . ctxt , self . tgt_cell_name , task_name , begin , end , host = host , state = state ) #NEWLINE# self . assertIsInstance ( response , list ) #NEWLINE# self . assertEqual ( 1 , len ( response ) ) #NEWLINE# result = response [ 0 ] . value_or_raise ( ) #NEWLINE# self . assertEqual ( [ 'fake_result' ] , result )