def METHOD_NAME(self):
    self.prepare_case()
    with self.assertRaises(ValueError):
        snapshot_download(
            self.model_id, self.revision, local_files_only=True)
    snapshot_path = snapshot_download(self.model_id, self.revision)
    assert os.path.exists(os.path.join(snapshot_path, ModelFile.README))
    snapshot_path = snapshot_download(
        self.model_id, self.revision, local_files_only=True)
    assert os.path.exists(snapshot_path)