

def test_creates_directory_if_missing(self):
    '\n        If the directory where the Docker plugin listens on Unix socket does\n        not exist, the plugin will create it.\n        '
    path = FilePath(self.mktemp())
    DockerPluginScript()._create_listening_directory(path)
    self.assertTrue(path.exists())

dataset/ETHPy150Open ClusterHQ/flocker/flocker/dockerplugin/test/test_script.py DockerPluginScriptTests.test_creates_directory_if_missing/original