def METHOD_NAME(self):
    # set up a directory for our dummy job logs, with an HTTP server
    self.logs_dir = tempfile.mkdtemp(prefix='beaker-client-test-job-logs')
    self.addCleanup(shutil.rmtree, self.logs_dir, ignore_errors=True)
    self.archive_server = Process('http_server.py', args=[sys.executable,
            pkg_resources.resource_filename('bkr.inttest', 'http_server.py'),
            '--base', self.logs_dir], listen_port=19998)
    self.archive_server.start()
    self.addCleanup(self.archive_server.stop)
    self.log_server_url = u'http://localhost:19998/'
    # job for testing
    with session.begin():
        self.job = data_setup.create_completed_job()
        self.recipe = self.job.recipesets[0].recipes[0]
        os.mkdir(os.path.join(self.logs_dir, 'R'))
        open(os.path.join(self.logs_dir, 'R', 'dummy.txt'), 'w').write('recipe\n')
        self.recipe.logs[:] = [LogRecipe(server=self.log_server_url,
                path=u'R', filename=u'dummy.txt')]
        os.mkdir(os.path.join(self.logs_dir, 'T'))
        open(os.path.join(self.logs_dir, 'T', 'dummy.txt'), 'w').write('task\n')
        self.recipe.tasks[0].logs[:] = [LogRecipeTask(server=self.log_server_url,
                path=u'T', filename=u'dummy.txt')]
        os.mkdir(os.path.join(self.logs_dir, 'TR'))
        open(os.path.join(self.logs_dir, 'TR', 'dummy.txt'), 'w').write('result\n')
        self.recipe.tasks[0].results[0].logs[:] = [LogRecipeTaskResult(
                server=self.log_server_url,
                path=u'TR', filename=u'dummy.txt')]