a
    ߙfb                     @   s   d dl Zd dlmZ d dlZ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d	 Zd
d Zdd ZdZdd ZdS )    N)assert_allclose)raises)units)WCS)assert_quantity_allclose)deserialize_classwcs_info_strc                  C   s&   t ddddif} t| dtj  d S )Nastropy.units.Quantity)
   unitdegr
   )r   r   ur   result r   Blib/python3.9/site-packages/astropy/wcs/wcsapi/tests/test_utils.pytest_construct   s    r   c                  C   s2   t ddddifdd} | tjdddifks.J d S )Nr	   r   r   r   F)Z	construct)r   r   ZQuantityr   r   r   r   test_noconstruct   s    r   c                  C   sT   t t$} tddddidf W d    n1 s20    Y  | jjd dksPJ d S )Nr	   r   r   r   r   z Expected a tuple of three values)r   
ValueErrorr   valueargs)excr   r   r   test_invalid   s    
2r   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                  C   s&   t dd} t|  t ks"J d S )N   )Znaxis)r   r   stripDEFAULT_1D_STR)Z	wcs_emptyr   r   r   test_wcs_info_str6   s    
r   )ZnumpyZnpZnumpy.testingr   Zpytestr   Zastropyr   r   Zastropy.wcsr   Zastropy.tests.helperr   Zastropy.wcs.wcsapi.utilsr   r   r   r   r   r   r   r   r   r   r   <module>   s   