class_docstr: Test PartialFileIO object.
docstr: Test `PartialFileIO` only implements a subset of the `io` interface. This is on-purpose to avoid misuse.
docstr_tok: ["Test","`","PartialFileIO","`","only","implements","a","subset","of","the","`","io","`","interface",".","This","is","on-purpose","to","avoid","misuse","."]
code: def test_methods_not_implemented(self) -> None:
      """Test `PartialFileIO` only implements a subset of the `io` interface. This is on-purpose to avoid misuse."""
      file = PartialFileIO(self.file_path, size_limit=5)
  
      with self.assertRaises(NotImplementedError):
          file.readline()
  
      with self.assertRaises(NotImplementedError):
          file.write(b"123")
  
imports: import time
  import unittest
  from io import SEEK_END
  from pathlib import Path
  from unittest.mock import MagicMock, patch
  import pytest
  from huggingface_hub import CommitOperationAdd, HfApi, hf_hub_download
  from huggingface_hub._commit_scheduler import CommitScheduler, PartialFileIO
  from .testing_constants import ENDPOINT_STAGING, TOKEN
  from .testing_utils import repo_name
label_desc: Use image node_id 7 for calling the TestPartialFileIO obj's underlying member method code with example usage: obj.test_methods_not_implemented() without return types