docstr: Test `huggingface-cli download dummy-repo`.
docstr_tok: ["Test","`","huggingface-cli","download","dummy-repo","`","."]
code: def test_download_basic(self) -> None:
      """Test `huggingface-cli download dummy-repo`."""
      args = self.parser.parse_args(["download", DUMMY_MODEL_ID])
      self.assertEqual(args.repo_id, DUMMY_MODEL_ID)
      self.assertEqual(len(args.filenames), 0)
      self.assertEqual(args.repo_type, "model")
      self.assertIsNone(args.revision)
      self.assertIsNone(args.include)
      self.assertIsNone(args.exclude)
      self.assertIsNone(args.cache_dir)
      self.assertIsNone(args.local_dir)
      self.assertEqual(args.local_dir_use_symlinks, "auto")
      self.assertFalse(args.force_download)
      self.assertFalse(args.resume_download)
      self.assertIsNone(args.token)
      self.assertFalse(args.quiet)
      self.assertEqual(args.func, DownloadCommand)
  
imports: import os
  import unittest
  import warnings
  from argparse import ArgumentParser, Namespace
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Generator
  from unittest.mock import Mock, patch
  from huggingface_hub.commands.delete_cache import DeleteCacheCommand
  from huggingface_hub.commands.download import DownloadCommand
  from huggingface_hub.commands.scan_cache import ScanCacheCommand
  from huggingface_hub.commands.upload import UploadCommand
  from huggingface_hub.utils import RevisionNotFoundError, SoftTemporaryDirectory, capture_output
  from .testing_utils import DUMMY_MODEL_ID
label_desc: Use image node_id 2 for calling the TestDownloadCommand obj's underlying member method code with example usage: obj.test_download_basic() without return types