B
    Mô`À  ã               @   s8   d dl mZ d dlZdd„ Zdd„ Zdd„ Zdd	„ ZdS )
é    Nc              C   sH   t  dd¡} | d | d ks t‚| d d …df | d d …df ksDt‚d S )Né   é   )r   r   r   )ÚgridspecÚGridSpecÚAssertionError)Zgs© r   úB/tmp/pip-unpacked-wheel-0c1wfn4v/matplotlib/tests/test_gridspec.pyÚ
test_equal   s    r	   c            	   C   s0   t  t¡� tjdddddgd� W dQ R X dS )za
    Addresses issue #5835.
    See at https://github.com/matplotlib/matplotlib/issues/5835.
    r   r   é   )Úwidth_ratiosN)ÚpytestÚraisesÚ
ValueErrorr   r   r   r   r   r   Útest_width_ratios   s    r   c            	   C   s0   t  t¡� tjdddddgd� W dQ R X dS )za
    Addresses issue #5835.
    See at https://github.com/matplotlib/matplotlib/issues/5835.
    r   r   r
   )Úheight_ratiosN)r   r   r   r   r   r   r   r   r   Útest_height_ratios   s    r   c              C   sN   t  dd¡ddd…f } t| ƒdks(t‚t jddddd�} t| ƒdksJt‚d S )	Nr
   r   r   zGridSpec(3, 3)[2:3, 1:3])r
   r   )r   r
   )r   r   z9GridSpec(2, 2, height_ratios=(3, 1), width_ratios=(1, 3)))r   r   Úreprr   )Ússr   r   r   Ú	test_repr   s    r   )Zmatplotlib.gridspecr   r   r	   r   r   r   r   r   r   r   Ú<module>   s
   		