o
    5c                     @   sB   d dl mZ d dlmZmZmZmZ d dlmZ	 G dd dZ
dS )    )	timedelta)Index	Timestamp
date_rangeisnaNc                   @   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   m)periodsfreqz
2010-02-28z2010-02)r   r   asof
isinstancer   )selfindexexpectedresult r   ^/var/www/html/gps/gps/lib/python3.10/site-packages/pandas/tests/indexes/datetimes/test_asof.pytest_asof_partial   s
   
zTestAsOf.test_asof_partialc                 C   s   t d}|d }|||ksJ t||td sJ |d }||td |ks0J |d  }t||ts@J d S )Nd   r      )tmmakeDateIndexr   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   )datetimer   pandasr   r   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s    