'The directory is created with restrictive permissions.'

def test_permissions(self):

    path = FilePath(self.mktemp())
    DockerPluginScript()._create_listening_directory(path)
    path.restat()
    self.assertEqual(path.getPermissions().shorthand(), 'rwx------')
