a
    d                     @   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)Zperiodsfreqz
2010-02-28z2010-02)r   r   asof
isinstancer   )selfindexexpectedresult r   q/var/www/html/stable-diffusion-webui/venv/lib/python3.9/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s`J |d  }t||tsJ d S )Nd   r      )tmZmakeDateIndexr   r   r   Z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   Zpandasr   r   r   r   Zpandas._testingZ_testingr   r   r   r   r   r   <module>   s   