o
    _~#gQ                     @   sL   d dl Zd dlZd dlm  mZ d dlmZ d dl	m
Z G dd dZdS )    N)	DataFramec                   @   sJ   e Zd Zejdddgdd Zejdd Z	dd	 Z
ejd
d ZdS )TestCopyattrindexcolumnsc                 C   s<   t ||}d |_| }dt ||_t ||jd u sJ d S )Nfoo)getattrnamecopy)selffloat_framer   indcp r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/frame/methods/test_copy.pytest_copy_index_name_checking   s
   
z&TestCopy.test_copy_index_name_checkingc                 C   s   t ddgi}dg|d< |d  |  d|d jd< t|t dgdgd dg|d< |d jd dks8J t|t dgdgdgd d S )	Na   r   x)r   r   y)r   r   r   )r   r
   valuestmassert_frame_equal)r   dfr   r   r   test_copy_cache   s   

"zTestCopy.test_copy_cachec                 C   s<   |  }|d |d< d|vsJ |  }|j|jusJ d S )NAE)r
   _mgr)r   r   float_string_framecopr
   r   r   r   	test_copy(   s
   zTestCopy.test_copyc                 C   s   t tjdjddddtjdjddddd}tdD ]}tjdjdddd|jd d d| f< qt|jj	d	ksBJ |
 }t|jj	d
ksPJ d S )N   r   d   7   )size)r   b
   n_   r   )r   nprandomdefault_rngintegersrangeloclenr   blocksr
   )r   r   iresultr   r   r   test_copy_consolidates1   s   .zTestCopy.test_copy_consolidatesN)__name__
__module____qualname__pytestmarkparametrizer   tdskip_copy_on_write_invalid_testr   r!   skip_array_manager_invalid_testr4   r   r   r   r   r   
   s    
	
	r   )numpyr*   r8   pandas.util._test_decoratorsutil_test_decoratorsr;   pandasr   pandas._testing_testingr   r   r   r   r   r   <module>   s    