class_docstr: Test the scene class.
class_docstr_tok: ["Test","the","scene","class","."]
docstr: Test initialisation with FSFile objects.
docstr_tok: ["Test","initialisation","with","FSFile","objects","."]
code: def test_init_with_fsfile(self):
      """Test initialisation with FSFile objects."""
      from satpy.readers import FSFile
  
      # We should not mock _create_reader_instances here, because in
      # https://github.com/pytroll/satpy/issues/1605 satpy fails with
      # TypeError within that method if passed an FSFile instance.
      # Instead rely on the ValueError that satpy raises if no readers
      # are found.
      # Choose random filename that doesn't exist.  Not using tempfile here,
      # because tempfile creates files and we don't want that here.
      fsf = FSFile("".join(random.choices(string.printable, k=50)))
      with pytest.raises(ValueError, match="No supported files found"):
          Scene(filenames=[fsf], reader=[])
  
imports: import os
  import random
  import string
  from copy import deepcopy
  from unittest import mock
  import pytest
  import satpy
  from satpy import Scene
  from satpy.tests.utils import FAKE_FILEHANDLER_END, FAKE_FILEHANDLER_START, spy_decorator
label_desc: Use image node_id 9 for calling the TestScene obj's underlying member method code with example usage: obj.test_init_with_fsfile() without return types