def METHOD_NAME(self):
    """
    Create a Tahoe-LAFS node which can contain some magic folder configuration
    and run it.
    """
    yield super(ScanMagicFolder, self).METHOD_NAME()
    self.magic_path = FilePath(self.mktemp())
    self.magic_path.makedirs()
    self.folder_name = "default"
    folders = {
        self.folder_name: {
            "magic-path": self.magic_path,
            "author-name": "author",
            "poll-interval": 60,
            "scan-interval": None,
            "admin": True,
        }
    }
    self.config_dir = FilePath(self.mktemp())
    self.node = MagicFolderNode.create(
        reactor,
        self.config_dir,
        folders=folders,
        start_folder_services=False,
    )
    self.folder_config = self.node.global_config.get_magic_folder(self.folder_name)
    self.folder_service = self.node.global_service.get_folder_service(
        self.folder_name
    )
    self.folder_service.local_snapshot_service.startService()
    self.addCleanup(self.folder_service.local_snapshot_service.stopService)
    self.folder_service.uploader_service.startService()
    self.addCleanup(self.folder_service.uploader_service.stopService)
    def clean():
        folder = self.node.global_service.get_folder_service(self.folder_name)
        return folder.scanner_service._file_factory.finish()
    self.addCleanup(clean)