
    IR-e                     b    d dl mZ d dlmZ d dlmZ d dlmZ d dl	m
Z
mZ d Zd Zd Zd	Zd
 ZdS )    )raises)units)assert_quantity_allclose)WCS)deserialize_classwcs_info_strc                  h    t          ddddif          } t          | dt          j        z             d S )Nastropy.units.Quantity)
   unitdegr   )r   r   ur   results    Clib/python3.11/site-packages/astropy/wcs/wcsapi/tests/test_utils.pytest_constructr   	   s7     8%&%QRRFVR!%Z00000    c                  `    t          ddddifd          } | t          j        dddifk    sJ d S )Nr
    r   r   F)	construct)r   r   Quantityr   s    r   test_noconstructr      sL    	!275  F aj"vuo6666666r   c                      t          t                    5 } t          ddddidf           d d d            n# 1 swxY w Y   | j        j        d         dk    sJ d S )Nr
   r   r   r   r   z Expected a tuple of three values)r   
ValueErrorr   valueargs)excs    r   test_invalidr      s    	
		 Os3R&%"MNNNO O O O O O O O O O O O O O O9>! BBBBBBBs   7;;at  
WCS Transformation

This transformation has 1 pixel and 1 world dimensions

Array shape (Numpy order): None

Pixel Dim  Axis Name  Data size  Bounds
        0  None            None  None

World Dim  Axis Name  Physical Type  Units
        0  None       None           unknown

Correlation between pixel and world axes:

           Pixel Dim
World Dim    0
        0  yes
c                      t          d          } t          |                                           t                                          k    sJ d S )N   )naxis)r   r   stripDEFAULT_1D_STR)	wcs_emptys    r   test_wcs_info_strr%   0   sH    
 !I	""((**n.B.B.D.DDDDDDDr   N)pytestr   astropyr   r   astropy.tests.helperr   astropy.wcsr   astropy.wcs.wcsapi.utilsr   r   r   r   r   r#   r%   r   r   r   <module>r+      s                9 9 9 9 9 9       D D D D D D D D1 1 1
7 7 7C C C*E E E E Er   