class_docstr: Test identification of Native format filenames.
class_docstr_tok: ["Test","identification","of","Native","format","filenames","."]
docstr: Test file pattern matching.
docstr_tok: ["Test","file","pattern","matching","."]
code: def test_file_pattern(self, reader):
      """Test file pattern matching."""
      filenames = [
          # Valid
          "MSG2-SEVI-MSG15-0100-NA-20080219094242.289000000Z",
          "MSG2-SEVI-MSG15-0201-NA-20080219094242.289000000Z",
          "MSG2-SEVI-MSG15-0301-NA-20080219094242.289000000Z-123456.nat",
          "MSG2-SEVI-MSG15-0401-NA-20080219094242.289000000Z-20201231181545-123456.nat",
          # Invalid
          "MSG2-SEVI-MSG15-010-NA-20080219094242.289000000Z",
      ]
      files = reader.select_files_from_pathnames(filenames)
      assert len(files) == 4
  
imports: from __future__ import annotations
  import os
  import unittest
  import warnings
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.readers.eum_base import recarray2dict, time_cds_short
  from satpy.readers.seviri_l1b_native import ASCII_STARTSWITH, ImageBoundaries, NativeMSGFileHandler, Padder, get_available_channels, has_archive_header
  from satpy.tests.reader_tests.test_seviri_base import ORBIT_POLYNOMIALS, ORBIT_POLYNOMIALS_INVALID
  from satpy.tests.reader_tests.test_seviri_l1b_calibration import TestFileHandlerCalibrationBase
  from satpy.tests.utils import assert_attrs_equal, make_dataid
label_desc: Use image node_id 2 for calling the TestNativeMSGFilenames obj's underlying member method code with example usage: obj.test_file_pattern(reader) without return types