code: def test_unsupported_projection(self):
      source = ogc.WMSRasterSource(self.URI, self.layer)
      # Patch dict of known Proj->SRS mappings so that it does
      # not include any of the available SRSs from the WMS.
      with mock.patch.dict(
          "cartopy.io.ogc_clients._CRS_TO_OGC_SRS",
          {ccrs.OSNI(approx=True): "EPSG:29901"},
          clear=True,
      ):
          msg = "not available"
          with pytest.raises(ValueError, match=msg):
              source.validate_projection(ccrs.Miller())
  
imports: from unittest import mock
  from xml.etree.ElementTree import ParseError
  import numpy
  import pytest
  import cartopy.crs
  from cartopy.tests.conftest import _HAS_PYKDTREE_OR_SCIPY
  import cartopy.io.ogc_clients
  from cartopy.io.ogc_clients import _OWSLIB_AVAILABLE
label_desc: Use image node_id 9 for calling the TestWMSRasterSource obj's underlying member method code with example usage: obj.test_unsupported_projection() without return types