o
    _~#g                     @   s:   d dl Zd dlZd dlmZ d dlmZ G dd dZdS )    N)	DataFramec                   @   s,   e Zd Zdd Zdd Zdd Zdd Zd	S )
TestSwapAxesc                 C   sz   t tjdd}d}tjt|d t|j	|
dd t|j	|
dd W d    d S 1 s6w   Y  d S )N   
      "'DataFrame.swapaxes' is deprecatedmatchr      )r   nprandomdefault_rngstandard_normaltmassert_produces_warningFutureWarningassert_frame_equalTswapaxesselfdfmsg r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/frame/methods/test_swapaxes.pytest_swapaxes	   s   "zTestSwapAxes.test_swapaxesc                 C   sb   t tjdd}d}tjt|d t||	dd W d    d S 1 s*w   Y  d S )Nr   r   r   r	   r   )
r   r   r   r   r   r   r   r   r   r   r   r   r   r   test_swapaxes_noop   s
   "zTestSwapAxes.test_swapaxes_noopc              	   C   s   t tjdd}d}tjt|d0 d}tj	t
|d |dd W d    n1 s/w   Y  W d    d S W d    d S 1 sGw   Y  d S )Nr   r   r   r	   z)No axis named 2 for object type DataFramer   )r   r   r   r   r   r   r   r   pytestraises
ValueErrorr   r   r   r   r   test_swapaxes_invalid_axis   s   "z'TestSwapAxes.test_swapaxes_invalid_axisc                 C   sj   t dddgi}d}tjt|d |dd}W d    n1 s"w   Y  t|| ||us3J d S )Nar   r   r   r	   index)r   r   r   r   r   r   )r   r   r   resultr   r   r   test_round_empty_not_input   s   z'TestSwapAxes.test_round_empty_not_inputN)__name__
__module____qualname__r   r   r!   r%   r   r   r   r   r      s
    r   )	numpyr   r   pandasr   pandas._testing_testingr   r   r   r   r   r   <module>   s
    