

def test_permissions(self):
    '\n        The directory is created with restrictive permissions.\n        '
    path = FilePath(self.mktemp())
    DockerPluginScript()._create_listening_directory(path)
    path.restat()
    self.assertEqual(path.getPermissions().shorthand(), 'rwx------')

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