o
    5ct                     @   s6   d Z ddlmZmZmZ ddlmZ G dd dZdS )z>Tests for PeriodIndex behaving like a vectorized Period scalar    )	Timedelta
date_rangeperiod_rangeNc                   @   s$   e Zd Zdd Zdd Zdd ZdS )TestPeriodIndexOpsc                 C   s.   t dddd}tdddd}t|j| d S )NM
2016-01-01
2016-05-31freqstartendMSr   r
   )r   r   tmassert_index_equal
start_timeselfindexexpected_index r   d/var/www/html/gps/gps/lib/python3.10/site-packages/pandas/tests/indexes/period/test_scalar_compat.pytest_start_time   s   z"TestPeriodIndexOps.test_start_timec                 C   sF   t dddd}tdddd}|tddtdd 7 }t|j| d S )	Nr   r   r   r	   r      Dns)r   r   r   r   r   end_timer   r   r   r   test_end_time   s   z TestPeriodIndexOps.test_end_timec                 C   sH   t dddd}|j}tddddd }|tddd }t|| d S )Nz
1990-01-05Br   )r
   periodsr   )daysnanoseconds)r   r   r   
_with_freqr   r   r   )r   piresultdtiexpectedr   r   r   test_end_time_business_friday   s
   z0TestPeriodIndexOps.test_end_time_business_fridayN)__name__
__module____qualname__r   r   r(   r   r   r   r   r      s    r   )	__doc__pandasr   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s    