U
    *if                     @   sB   d dl Z 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)Seriesc                	   @   st   e Zd Zejdeee	ej
fdd Zejdedddedddd	edddd	fd
d ZdS )TestSeriesToDictmappingc                 C   sf   t ||dd}| }|jd |_t|| t |tj}t t|	 }t|| d S )Nts)name)
r   to_dictcopyindexZ
_with_freqtmZassert_series_equalcollectionsCounteritems)selfr   Zdatetime_seriesresultexpectedZfrom_methodZfrom_constructor r   [/home/mars/bis/venv/lib/python3.8/site-packages/pandas/tests/series/methods/test_to_dict.pytest_to_dict   s    zTestSeriesToDict.test_to_dictinput@   
   )abABC)r   r   cc                 C   s4   t | }t|d tstt|d ts0td S )Nr   r   )r   r   
isinstanceintAssertionError)r   r   dr   r   r   test_to_dict_return_types   s    z*TestSeriesToDict.test_to_dict_return_typesN)__name__
__module____qualname__pytestmarkZparametrizedictr   defaultdictlistOrderedDictr   npZint64Zuint64r   r   r   r   r   r   
   s    
r   )
r   numpyr)   r#   Zpandasr   Zpandas._testingZ_testingr
   r   r   r   r   r   <module>   s
   