3
ฎyb(  ใ               @   s   d Z ddlZddlZddlmZmZmZmZ ddl	j
ZG dd dZejjdeddd	ged
ddgedddggdd ZdS )a?  
test_indexing tests the following Index methods:
    __getitem__
    get_loc
    get_value
    __contains__
    take
    where
    get_indexer
    slice_locs
    asof_locs

The corresponding tests.indexes.[index_type].test_indexing files
contain tests for the corresponding methods specific to those Index subclasses.
้    N)ฺFloat64IndexฺIndexฺ
Int64IndexฺUInt64Indexc               @   sเ  e Zd Zejjdedddgdfedddgdfedddejdgdfedddej	dgdfedddejgejfedddej	gej	fgdd Z
ejjdedddgdfedddgdfedddejgdfedddej	gdfedddejgej	fedddej	gejfedddgejfedddgej	fedddgejfedddgej	fg
d	d
 Zejjdedddgdfedddgdfgdd Zejjdedddgdfedddgdfgdd Zdd ZdS )ฺTestContainsz	index,valr   ้   ้   ฺ2้   c             C   s   ||kst d S )N)ฺAssertionError)ฺselfฺindexฺvalฉ r   ๚F/tmp/pip-install-4cy230dp/pandas/pandas/tests/indexes/test_indexing.pyฺtest_index_contains   s    z TestContains.test_index_containsc             C   s   ||kst d S )N)r   )r   r   r   r   r   r   ฺtest_index_not_contains&   s    z$TestContains.test_index_not_containsc             C   s   ||kst d S )N)r   )r   r   r   r   r   r   ฺtest_mixed_index_contains:   s    z&TestContains.test_mixed_index_containsฺ1c             C   s   ||kst d S )N)r   )r   r   r   r   r   r   ฺtest_mixed_index_not_containsA   s    z*TestContains.test_mixed_index_not_containsc             C   s   t ddddg}tddddg}tddddg}x4||fD ](}d|ksJtd	|ksVtd|ks:tq:W d|ksrtd	|ks~td|kstd S )
Nr   r   r   ้   gน?g๑?g@gffffff
@g      ๐?)r   r   r   r   )r   Zinteger_indexZuinteger_indexZfloat_indexr   r   r   r   ฺtest_contains_with_float_indexH   s    z+TestContains.test_contains_with_float_indexN)ฺ__name__ฺ
__module__ฺ__qualname__ฺpytestฺmarkฺparametrizer   ฺnpฺinfฺnanr   r   r   r   r   r   r   r   r   r   r   r      s2   $ 00r   ฺidxr   r   r   gน?gษ?g333333ำ?ฺaฺbฺcc          	   C   s6   t jt | d }W d Q R X | d }||ks2td S )Ng      ๐?r   )ฺtmZassert_produces_warningฺFutureWarningr   )r!   ฺresultฺexpectedr   r   r   ฺtest_getitem_deprecated_floatX   s    r)   )ฺ__doc__Znumpyr   r   Zpandasr   r   r   r   Zpandas._testingZ_testingr%   r   r   r   r)   r   r   r   r   ฺ<module>   s   
A