code: def test_three_points(self):
      # The following LinearRing when projected from PlateCarree() to
      # PlateCarree(180.0) results in three points all in close proximity.
      # If an attempt is made to form a LinearRing from the three points
      # by combining the first and last an exception will be raised.
      # Check that this object can be projected without error.
      coords = [
          (0.0, -45.0),
          (0.0, -44.99974961593933),
          (0.000727869825138, -45.0),
          (0.0, -45.000105851567454),
          (0.0, -45.0),
      ]
      linear_ring = sgeom.LinearRing(coords)
      src_proj = ccrs.PlateCarree()
      target_proj = ccrs.PlateCarree(180.0)
      try:
          target_proj.project_geometry(linear_ring, src_proj)
      except ValueError:
          pytest.fail("Failed to project LinearRing.")
  
file_path: cartopy/lib/cartopy/tests/test_linear_ring.py
imports: import numpy
  import pytest
  import shapely.geometry
  import cartopy.crs
label_desc: Use image node_id 2 for calling the TestMisc obj's underlying member method code with example usage: obj.test_three_points() without return types