ó
šxŠ\c           @   s   d  d l  Z  d  d l Z e j d „  ƒ Z e j d „  ƒ Z e j d „  ƒ Z e j d d d g ƒ d „  ƒ Z e j d	 „  ƒ Z e j d
 „  ƒ Z e j d „  ƒ Z	 e j d „  ƒ Z
 e j d „  ƒ Z e j d „  ƒ Z e j d e e g ƒ d „  ƒ Z d S(   iÿÿÿÿNc           C   s
   t  ‚ d S(   s3   A fixture providing the ExtensionDtype to validate.N(   t   NotImplementedError(    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   dtype   s    c           C   s
   t  ‚ d S(   s‰   Length-100 array for this type.

    * data[0] and data[1] should both be non missing
    * data[0] and data[1] should not gbe equal
    N(   R    (    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   data   s    c           C   s
   t  ‚ d S(   s   Length-2 array with [NA, Valid]N(   R    (    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   data_missing   s    t   paramsR   R   c         C   s*   |  j  d k r | S|  j  d k r& | Sd S(   s5   Parametrized fixture giving 'data' and 'data_missing'R   R   N(   t   param(   t   requestR   R   (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   all_data   s    c            s   ‡  f d †  } | S(   s  
    Generate many datasets.

    Parameters
    ----------
    data : fixture implementing `data`

    Returns
    -------
    Callable[[int], Generator]:
        A callable that takes a `count` argument and
        returns a generator yielding `count` datasets.
    c         3   s    x t  |  ƒ D] } ˆ  Vq Wd  S(   N(   t   range(   t   countt   _(   R   (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   gen4   s    (    (   R   R   (    (   R   s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   data_repeated%   s    c           C   s
   t  ‚ d S(   si   Length-3 array with a known sort order.

    This should be three items [B, C, A] with
    A < B < C
    N(   R    (    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   data_for_sorting:   s    c           C   s
   t  ‚ d S(   sv   Length-3 array with a known sort order.

    This should be three items [B, NA, A] with
    A < B and NA missing.
    N(   R    (    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   data_missing_for_sortingD   s    c           C   s   t  j S(   sÊ   Binary operator for comparing NA values.

    Should return a function of two arguments that returns
    True if both arguments are (scalar) NA for your type.

    By default, uses ``operator.is_``
    (   t   operatort   is_(    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   na_cmpN   s    	c           C   s   d S(   s6   The scalar missing value for this type. Default 'None'N(   t   None(    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   na_valueZ   s    c           C   s
   t  ‚ d S(   s“   Data for factorization, grouping, and unique tests.

    Expected to be like [B, B, NA, NA, A, A, B, C]

    Where A < B < C and NA is missing
    N(   R    (    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   data_for_grouping`   s    c         C   s   |  j  S(   s#   Whether to box the data in a Series(   R   (   R   (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   box_in_seriesk   s    (   R   t   pytestt   fixtureR   R   R   R   R   R   R   R   R   R   t   Truet   FalseR   (    (    (    s>   lib/python2.7/site-packages/pandas/tests/extension/conftest.pyt   <module>   s   
!	

