o
    ŀg                     @   s6   d dl mZ d dlmZmZmZmZ G dd dZdS )    )	timedelta)Index	Timestamp
date_rangeisnac                   @   s   e Zd Zdd Zdd ZdS )TestAsOfc                 C   s>   t dddd}td}|d}||ksJ t|trJ d S )Nz
2010-01-01   ME)periodsfreqz
2010-02-28z2010-02)r   r   asof
isinstancer   )selfindexexpectedresult r   d/var/www/html/myenv/lib/python3.10/site-packages/pandas/tests/indexes/datetimes/methods/test_asof.pytest_asof_partial   s
   
zTestAsOf.test_asof_partialc                 C   s   t ddd}|d }|||ksJ t||td s J |d }||td |ks1J |d  }t||tsAJ d S )Nz
2020-01-01
   )r
   r      )r   r   r   r   to_pydatetimer   r   )r   r   dtr   r   r   	test_asof   s   zTestAsOf.test_asofN)__name__
__module____qualname__r   r   r   r   r   r   r      s    r   N)datetimer   pandasr   r   r   r   r   r   r   r   r   <module>   s    