
P'^c           @@  sV   d  d l  m Z d  d l m Z m Z d  d l m Z m Z d e f d     YZ d S(   i    (   t   absolute_import(   t   task_methodt   task(   t   AppCaset   patcht   test_task_methodc           B@  s   e  Z d    Z d   Z RS(   c         @  s   d t  f   f d     Y} |   } | j d    j | j d  | j d    j | j d    j | j    j | j j |  d  S(   Nt   Xc           @  s5   e  Z d    Z   j j d e d e  d    Z RS(   c         S@  s   d |  _  d  S(   Ni    (   t   state(   t   self(    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyt   __init__   s    t   sharedt   filterc         S@  s   |  j  | 7_  d  S(   N(   R   (   R   t   x(    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyt   add   s    (   t   __name__t
   __module__R	   t   appR   t   FalseR   R   (    (   R   (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyR      s   	i   i   i   (   t   objectR   t   assertEqualR   t
   assertTruet   assertIst   __self__(   R   R   R   (    (   R   sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyR   
   s    		c      
   C@  sN   t  d  < } t   } t | d d | j j | d d d t Wd  QXd  S(   Ns"   celery.contrib.methods.current_appR   i   R   (   R   R   R   t   assert_called_withR   (   R   t   curappt   fun(    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyt	   test_task   s    	(   R   R   R   R   (    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyR      s   	N(	   t
   __future__R    t   celery.contrib.methodsR   R   t   celery.tests.caseR   R   R   (    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/contrib/test_methods.pyt   <module>   s   