ó
P'^c           @@  sĒ   d  d l  m Z d  d l m Z m Z d  d l m Z d  d l m Z d e	 f d     YZ
 d e f d     YZ d	 e f d
     YZ d e f d     YZ d S(   i    (   t   absolute_import(   t   MapAnnotationt   prepare(   t   qualname(   t   AppCaset   MyAnnotationc           B@  s   e  Z d  Z RS(   iA   (   t   __name__t
   __module__t   foo(    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyR   	   s   t   AnnotationCasec           B@  s   e  Z d    Z RS(   c         C@  sR   |  j  j d t  d    } | |  _ |  j  j d t  d    } | |  _ d  S(   Nt   sharedc         S@  s   |  | S(   N(    (   t   xt   y(    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   add   s    c         S@  s   |  | S(   N(    (   R   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   mul   s    (   t   appt   taskt   FalseR   R   (   t   selfR   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   setup   s    	(   R   R   R   (    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyR	      s   t   test_MapAnnotationc           B@  s   e  Z d    Z d   Z RS(   c         C@  s`   t  i i d d 6|  j j 6 } |  j | j |  j  i d d 6 |  j | j |  j   d  S(   Ni   R   (   R   R   t   namet   assertDictEqualt   annotatet   assertIsNoneR   (   R   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   test_annotate   s     #c         C@  sW   t  i i d d 6d 6 } |  j | j   i d d 6 t    } |  j | j    d  S(   Ni   R   t   *(   R   R   t   annotate_anyR   (   R   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   test_annotate_any"   s    	(   R   R   R   R   (    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyR      s   	t   test_preparec           B@  s#   e  Z d    Z d   Z d   Z RS(   c         C@  s8   t  i i d d 6|  j j 6 } |  j | d t  d  S(   Ni   R   i    (   R   R   R   t   assertIsInstanceR   (   R   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   test_dict_to_MapAnnotation,   s     c         C@  sh   |  j  t d  d g  |  j  t d g  d g  |  j  t d  d g  |  j t d   d  d  S(   Ni   (   i   (    (   t   assertListEqualR   t   assertEqualt   None(   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   test_returns_list0   s    c         C@  sS   |  j  t t t   d   j d  |  j  t t t  g  d   j d  d  S(   Ni    iA   (   R!   R   R   R   R   (   R   (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   test_evalutes_qualnames6   s    &(   R   R   R   R#   R$   (    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyR   *   s   		N(   t
   __future__R    t   celery.app.annotationsR   R   t   celery.utils.importsR   t   celery.tests.caseR   t   objectR   R	   R   R   (    (    (    sC   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_annotations.pyt   <module>   s   