def test_file_logging_makedirs(self):
        logfile = FilePath(self.mktemp()).child('foo.log')
        d = self.run_script(EliotScript, options=['--logfile', logfile.path])
        d.addCallback(self._assert_logfile_messages, logfile=logfile)
        return d
The parent directory is created if it doesn't already exist.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/functional/test_script.py/FlockerScriptRunnerTests.test_file_logging_makedirs