o
    Jf                     @   sJ   d Z ddlZddlZddlZddlmZ ddlmZ G dd dejZ	dS )z3Test recovery from operation on invalid geometries
    N)TopologicalError)Polygonc                   @   s   e Zd Zdd ZdS )InvalidGeometriesTestCasec                 C   s   t g d}|jrJ t g d}|jsJ ||sJ tttjf || W d    n1 s5w   Y  tttjf || W d    d S 1 sSw   Y  d S )N)r   r   )   r   )r   )r   r   r   ))      r   )r         ?)r	   r	   )r	   )	r   is_valid
intersectspytestraisesr   shapelyGEOSExceptionintersection)selfpolygon_invalidpolygon r   x/home/deployuser/azure_apps/autowriter/venv/lib/python3.10/site-packages/shapely/tests/legacy/test_invalid_geometries.pytest_invalid_intersection   s   


z3InvalidGeometriesTestCase.test_invalid_intersectionN)__name__
__module____qualname__r   r   r   r   r   r      s    r   )
__doc__unittestr   r   shapely.errorsr   shapely.geometryr   TestCaser   r   r   r   r   <module>   s    