#NEWLINE# def test_copy_log_process_logs_speced_per_id( self ) : #NEWLINE# #INDENT# '\n    Create a single log file and set "process_logs" method to return\n    this file and test that is gets copied as expected\n    ' #NEWLINE# import tempfile #NEWLINE# localhost_logs_dir = tempfile . mkdtemp ( ) #NEWLINE# try : #NEWLINE# #INDENT# localhost_log_file = os . path . join ( localhost_logs_dir , 'unittest.log' ) #NEWLINE# ztestsuite = SampleTestSuite ( Mock_Deployer ( ) ) #NEWLINE# ztestsuite . process_logs = ( lambda unique_id : [ localhost_log_file ] ) #NEWLINE# self . __test_copy_log_speced_per_id ( ztestsuite , localhost_log_file , False ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# shutil . rmtree ( self )