ó
x\c           @   s   d  d l  m Z d  d l Z d  d l m Z d  d l j j Z d   Z	 d   Z
 d   Z d   Z d   Z d	   Z d
   Z d S(   iÿÿÿÿ(   t   dedentN(   t	   deprecatec           C   s   d S(   s   
    This is the summary. The deprecate directive goes next.

    This is the extended summary. The deprecate directive goes before this.
    s   new_func called(    (    (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   new_func
   s    c           C   s   d S(   Ns   new_func_no_docstring called(    (    (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   new_func_no_docstring   s    c           C   s   d S(   s#   Summary should be in the next line.s   new_func_wrong_docstring called(    (    (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   new_func_wrong_docstring   s    c           C   s   d S(   sÅ   
    This is the summary. The deprecate directive goes next.

    .. deprecated:: 1.0
        Use new_func instead.

    This is the extended summary. The deprecate directive goes before this.
    N(    (    (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   new_func_with_deprecation   s    	c          C   sk   t  d t d d d }  t j t   |    } Wd  QX| d k sI t  |  j t t j  k sg t  d  S(   Nt	   depr_funcs   1.0t   msgs   Use new_func instead.s   new_func called(	   R   R   t   tmt   assert_produces_warningt   FutureWarningt   AssertionErrort   __doc__R    R   (   R   t   result(    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   test_deprecate_ok(   s    	c          C   sM   t  d t d d d }  t j t   |    } Wd  QX| d k sI t  d  S(   NR   s   1.0R   s   Use new_func instead.s   new_func_no_docstring called(   R   R   R   R	   R
   R   (   R   R   (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   test_deprecate_no_docstring3   s
    	c        
   C   s6   t  j t d d  t d t d d d Wd  QXd  S(   Nt   matchs/   deprecate needs a correctly formatted docstringR   s   1.0R   s   Use new_func instead.(   t   pytestt   raisesR   R   R   (    (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   test_deprecate_wrong_docstring;   s    (   t   textwrapR    R   t   pandas.util._decoratorsR   t   pandas.util.testingt   utilt   testingR   R   R   R   R   R   R   R   (    (    (    s?   lib/python2.7/site-packages/pandas/tests/util/test_deprecate.pyt   <module>   s   							