U
    *if                     @   s>   d dl Zd dlZd dlmZmZ d dlmZ G dd dZ	dS )    N)Series	Timestampc                   @   sT   e Zd Zejddddgdd Zejddddgdd Zd	d
 Zdd Z	dS )TestCopydeepNFTc                 C   s   t tddd}|d kr$| }n|j|d}tj|d d d< |d ksP|dkrvt|d sbtt|d rtn$t|d stt|d std S )N
   Zfloat64)Zdtyper      Tr   )r   npZarangecopyNaNisnanAssertionError)selfr   serser2 r   X/home/mars/bis/venv/lib/python3.8/site-packages/pandas/tests/series/methods/test_copy.py	test_copy   s    
zTestCopy.test_copyc                 C   s   t tdddg}t tdddg}t tdddg}|d krH| }n|j|d}tddd|d< |d kst|dkrt|| t|| nt|| t|| d S )Nz
2012/01/01UTC)tzz
1999/01/01r   r   T)r   r   r
   tmZassert_series_equal)r   r   expectedZ	expected2r   r   r   r   r   test_copy_tzaware"   s    
zTestCopy.test_copy_tzawarec                 C   s   |  }|j|jkstd S )N)r
   namer   )r   datetime_seriesresultr   r   r   test_copy_name<   s    zTestCopy.test_copy_namec                 C   sH   d |j _|j jd kst||ks$t| }d|j _|j jd ksDtd S )NZfoo)indexr   r   r
   )r   r   cpr   r   r   test_copy_index_name_checking@   s    z&TestCopy.test_copy_index_name_checking)
__name__
__module____qualname__pytestmarkZparametrizer   r   r   r   r   r   r   r   r      s   

r   )
numpyr	   r#   Zpandasr   r   Zpandas._testingZ_testingr   r   r   r   r   r   <module>   s   