ó
P'—^c           @@  sž   d  d l  m Z d  d l m Z m Z d  d l m Z m Z m Z d  d l	 m
 Z
 m Z d e
 f d „  ƒ  YZ d e
 f d „  ƒ  YZ d	 e
 f d
 „  ƒ  YZ d S(   i    (   t   absolute_import(   t   Mappingt   MutableMapping(   t   Settingst   filter_hidden_settingst	   bugreport(   t   AppCaset   Mockt   TestSettingsc           B@  s    e  Z d  Z d „  Z d „  Z RS(   s,   
    Tests of celery.app.utils.Settings
    c         C@  s   |  j  t t t ƒ ƒ d S(   s(   Settings should be a collections.MappingN(   t
   assertTruet
   issubclassR   R   (   t   self(    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyt   test_is_mapping   s    c         C@  s   |  j  t t t ƒ ƒ d S(   s/   Settings should be a collections.MutableMappingN(   R	   R
   R   R   (   R   (    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyt   test_is_mutable_mapping   s    (   t   __name__t
   __module__t   __doc__R   R   (    (    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyR   
   s   	t   test_filter_hidden_settingsc           B@  s   e  Z d  „  Z RS(   c         C@  s7   i d d 6d d 6i d d 6d	 d 6d 6} t  | ƒ d S(   sg   filter_hidden_settings shouldn't raise an exception when handling
        mappings with non-string keyst   VALUE1t
   STRING_KEYt   VALUE2t   NONt   STRINGt   KEYi   t   STRING_KEY3i   t   2t   STRING_KEY2N(   R   R   R   (   R   R   R   R   (   R   (   R   t   conf(    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyt   test_handles_non_string_keys   s    (   R   R   R   (    (    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyR      s   t   test_bugreportc           B@  s   e  Z d  „  Z RS(   c         C@  s?   t  ƒ  |  j _ t  ƒ  } |  j j _ d  | _ t |  j ƒ d  S(   N(   R   t   appt
   connectiont   return_valuet   Nonet	   transportR   (   R   t   conn(    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyt   test_no_conn_driver_info)   s    	(   R   R   R$   (    (    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyR   '   s   N(   t
   __future__R    t   collectionsR   R   t   celery.app.utilsR   R   R   t   celery.tests.caseR   R   R   R   R   (    (    (    s=   /tmp/pip-unpacked-wheel-gV1wwp/celery/tests/app/test_utils.pyt   <module>   s   