class_docstr: Test the BaseFileHandler.
class_docstr_tok: ["Test","the","BaseFileHandler","."]
docstr: Test that the file object passed (string, path, or other) is kept intact.
docstr_tok: ["Test","that","the","file","object","passed","(","string",",","path",",","or","other",")","is","kept","intact","."]
code: def test_file_is_kept_intact(self):
      """Test that the file object passed (string, path, or other) is kept intact."""
      open_file = mock.MagicMock()
      bfh = BaseFileHandler(
          open_file, {"filename_info": "bla"}, "filetype_info"
      )
      assert bfh.filename == open_file
  
      from pathlib import Path
  
      filename = Path("/bla/bla.nc")
      bfh = BaseFileHandler(
          filename, {"filename_info": "bla"}, "filetype_info"
      )
      assert isinstance(bfh.filename, Path)
  
file_path: satpy/satpy/tests/test_file_handlers.py
imports: import unittest
  from datetime import datetime, timedelta
  from unittest import mock
  import numpy
  import pytest
  from satpy.readers.file_handlers import BaseFileHandler, open_dataset
  from satpy.tests.utils import FakeFileHandler
label_desc: Use image node_id 7 for calling the TestBaseFileHandler obj's underlying member method code with example usage: obj.test_file_is_kept_intact() without return types