U
    f/e                     @   s6   d Z ddlZddlmZ ddlmZ G dd dZdS )z7
Tests for ndarray-like method on the base Index class
    N)Indexc                	   @   sb   e Zd Zdd Zdd Zejddeddd	gd
dfdedddgd
dfgdd Z	dd Z
dS )TestReshapec                 C   s@   d}t dddg}t ddddddg}||}t|| d S )N         )r   repeattmassert_index_equal)selfZrepeatsindexexpectedresult r   P/tmp/pip-unpacked-wheel-tiezk1ph/pandas/tests/indexes/base_class/test_reshape.pytest_repeat   s
    
zTestReshape.test_repeatc                 C   s   t dddg}tt ddddg|dd tt ddddg|dd t|dd	|d
d	 t g }tt dg|dd d S )Nbcdar   er   z)r   r   r	   insert)r
   r   Z
null_indexr   r   r   test_insert   s      zTestReshape.test_insertzpos,expectedr   r   r   r   r   namer   r   c                 C   s>   t ddddgdd}||}t|| |j|jks:td S )Nr   r   r   r   r   r   )r   deleter   r	   r   AssertionError)r
   posr   r   r   r   r   r   test_delete&   s    
zTestReshape.test_deletec                 C   sr   t ddddddg}|d d |dd |dd  g}|d	 |d
d  }t|| |g }t|| d S )Nr   r   r   r   r   fr      r   r   )r   appendr   r	   )r
   r   Zfoosr   r   r   r   test_append_multiple3   s    "
z TestReshape.test_append_multipleN)__name__
__module____qualname__r   r   pytestmarkZparametrizer   r    r$   r   r   r   r   r   
   s   
r   )__doc__r(   Zpandasr   Zpandas._testingZ_testingr   r   r   r   r   r   <module>   s   