ó
2(Vc           @   s  d  Z  d d l Z e   Z d e j f d     YZ d e j f d     YZ d e j f d     YZ d	 e j f d
     YZ d e j f d     YZ	 d e j f d     YZ
 d e j f d     YZ d e j f d     YZ d e f d     YZ d e f d     YZ d e j f d     YZ d e j f d     YZ d e f d     YZ d   Z d   Z d e f d      YZ d!   Z d S("   s   Test Interface implementation
i˙˙˙˙Nt   Test_invariantc           B   s   e  Z d    Z d   Z RS(   c            sr   d d l  m  d d l  m } d     d t f    f d     Y} |  j t | | d   i   g d 6 d  S(   Ni˙˙˙˙(   t	   invariant(   t   TAGGED_DATAc          _   s   d  S(   N(    (   t   argst   kw(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _check   s    t   Fooc              s   e  Z     RS(    (   t   __name__t
   __module__(    (   R   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR      s   t
   invariants(   t   zope.interface.interfaceR   R   t   objectt   assertEqualt   getattrt   None(   t   selfR   R   (    (   R   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_single   s    	c            s   d d l  m  d d l  m } d    d     d t f     f d     Y} |  j t | | d   i    g d 6 d  S(	   Ni˙˙˙˙(   R   (   R   c          _   s   d  S(   N(    (   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   (   s    c          _   s   d  S(   N(    (   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _another_check+   s    R   c              s   e  Z        RS(    (   R   R   (    (   R   R   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   .   s   
R	   (   R
   R   R   R   R   R   R   (   R   R   R   (    (   R   R   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_multiple$   s    		"(   R   R   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR       s   	t   Test_taggedValuec           B   s#   e  Z d    Z d   Z d   Z RS(   c            sf   d d l  m   d d l  m } d t f   f d     Y} |  j t | | d   i d g d 6 d  S(   Ni˙˙˙˙(   t   taggedValue(   R   R   c              s   e  Z   d  d g  RS(   t   bart   baz(   R   R   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   <   s   R   R   (   R
   R   R   R   R   R   R   (   R   R   R   (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   8   s
    c            sm   d d l  m   d d l  m } d t f   f d     Y} |  j t | | d   i d g d 6d d	 6 d  S(
   Ni˙˙˙˙(   R   (   R   R   c              s%   e  Z   d  d g    d d  RS(   R   R   t   quxt   spam(   R   R   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   F   s   R   R   R   R   (   R
   R   R   R   R   R   R   (   R   R   R   (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   B   s
    c            sj   d d l  m   d d l  m } d t f   f d     Y} |  j t | | d   i d d 6d d	 6 d  S(
   Ni˙˙˙˙(   R   (   R   R   c              s2   e  Z   d  d g    d d    d  d  RS(   R   R   R   R   t   frob(   R   R   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Q   s   R   R   R   R   (   R
   R   R   R   R   R   R   (   R   R   R   (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_multiple_overwritingM   s
    (   R   R   R   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   6   s   	
	t   ElementTestsc           B   s\   e  Z d  Z d   Z d	 e d  Z d   Z d   Z d   Z	 d   Z
 d   Z d   Z RS(
   t	   AnElementc         C   s   d d l  m } | S(   Ni˙˙˙˙(   t   Element(   R
   R   (   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _getTargetClass^   s    c         C   sG   | d  k r |  j } n  | t k r4 |  j   |  S|  j   | |  S(   N(   R   t   DEFAULT_NAMEt   _markerR   (   R   t   namet   __doc__(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _makeOneb   s
    c         C   s   |  j    } |  j | j |  j  |  j | j   |  j  |  j | j d  |  j | j   d  |  j t | j    g   d  S(   Nt    (	   R#   R   R   R   t   getNameR"   t   getDoct   listt   getTaggedValueTags(   R   t   element(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_ctor_defaultsi   s    c         C   s9   |  j  d  } |  j | j d   |  j | j d  d  S(   Ns
   An Element(   R#   R   R   R   R"   (   R   R)   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_ctor_no_doc_space_in_nameq   s    c         C   s&   |  j    } |  j t | j d  d  S(   Nt   nonesuch(   R#   t   assertRaisest   KeyErrort   getTaggedValue(   R   R)   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getTaggedValue_missv   s    c         C   s)   |  j    } |  j | j d  d   d  S(   NR,   (   R#   R   t   queryTaggedValueR   (   R   R)   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_queryTaggedValue_missz   s    c         C   s,   |  j    } |  j | j d d  d  d  S(   NR,   R   (   R#   R   R1   (   R   R)   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt$   test_queryTaggedValue_miss_w_default~   s    c         C   sq   |  j    } | j d d  |  j t | j    d g  |  j | j d  d  |  j | j d  d  d  S(   Nt   fooR   (   R#   t   setTaggedValueR   R'   R(   R/   R1   (   R   R)   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_setTaggedValue   s
    N(   R   R   R   R   R   R    R#   R*   R+   R0   R2   R3   R6   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Z   s   						t   SpecificationBasePyTestsc           B   sb   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z RS(
   c         C   s   d d l  m } | S(   Ni˙˙˙˙(   t   SpecificationBasePy(   R
   R8   (   R   R8   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR      s    c         C   s   |  j      S(   N(   R   (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR#      s    c            sq   d d l  m } d d l m   |  j   }   f d   } t | d |  |  j | j t     Wd  QXd  S(   Ni˙˙˙˙(   t	   interface(   t   _emptyc            s     S(   N(    (   t   obj(   R:   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _providedBy   s    t
   providedBy(	   t   zope.interfaceR9   t   zope.interface.declarationsR:   R#   t   _Monkeyt   assertFalseR=   R   (   R   R9   t   sbR<   (    (   R:   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_providedBy_miss   s    c            s}   d d l  m } |  j    d t f  f d     Y    f d   } t | d |  |  j  j t     Wd  QXd  S(   Ni˙˙˙˙(   R9   t   _Declc              s   e  Z i i    6Z RS(    (   R   R   t   _implied(    (   RB   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRD      s   c            s       S(   N(    (   R;   (   RD   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR<   Ą   s    R=   (   R>   R9   R#   R   R@   t
   assertTrueR=   (   R   R9   R<   (    (   RD   RB   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_providedBy_hit   s    c            sq   d d l  m } d d l m   |  j   }   f d   } t | d |  |  j | j t     Wd  QXd  S(   Ni˙˙˙˙(   R9   (   R:   c            s     S(   N(    (   R;   (   R:   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _implementedByŞ   s    t   implementedBy(	   R>   R9   R?   R:   R#   R@   RA   RI   R   (   R   R9   RB   RH   (    (   R:   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_implementedBy_missŚ   s    c            s}   d d l  m } |  j    d t f  f d     Y    f d   } t | d |  |  j  j t     Wd  QXd  S(   Ni˙˙˙˙(   R9   RD   c              s   e  Z i i    6Z RS(    (   R   R   RE   (    (   RB   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRD   ˛   s   c            s       S(   N(    (   R;   (   RD   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRH   ´   s    RI   (   R>   R9   R#   R   R@   RF   RI   (   R   R9   RH   (    (   RD   RB   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_implementedBy_hitŻ   s    c         C   s2   |  j    } i  | _ |  j | j t     d  S(   N(   R#   RE   RA   t   isOrExtendsR   (   R   RB   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_isOrExtends_missš   s    	c         C   s<   |  j    } t   } i i  | 6| _ |  j | |   d  S(   N(   R#   R   RE   RF   (   R   RB   t   testing(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_isOrExtends_hitž   s    	c         C   s2   |  j    } i  | _ |  j | j t     d  S(   N(   R#   RE   RA   RL   R   (   R   RB   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___call___missÄ   s    	c         C   s<   |  j    } t   } i i  | 6| _ |  j | |   d  S(   N(   R#   R   RE   RF   (   R   RB   RN   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___call___hitÉ   s    	(   R   R   R   R#   RC   RG   RJ   RK   RM   RO   RP   RQ   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR7      s   					
			
			t   InterfaceBasePyTestsc           B   sP   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 RS(   c         C   s   d d l  m } | S(   Ni˙˙˙˙(   t   InterfaceBasePy(   R
   RS   (   R   RS   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Ň   s    c            s)   d |  j    f   f d     Y} |   S(   Nt   IBc              s    e  Z d    Z   f d   Z RS(   c         S   s
   | |   S(   N(    (   R   t   conform(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _call_conformŘ   s    c            s     S(   N(    (   R   R;   (   t   object_should_provide(    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR=   Ú   s    (   R   R   RV   R=   (    (   RW   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRT   ×   s   	(   R   (   R   RW   RT   (    (   RW   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR#   Ö   s    "c            sT   |  j  t  } t     d t f   f d     Y} |  j | |      k  d  S(   Nt   _Adaptedc              s   e  Z   f d    Z RS(   c            s     S(   N(    (   R   t   iface(   t	   conformed(    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   __conform__â   s    (   R   R   R[   (    (   RZ   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRX   á   s   (   R#   t   FalseR   RF   (   R   t   ibRX   (    (   RZ   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt+   test___call___w___conform___returning_valueŢ   s    	c         C   sK   |  j  t  } d t f d     Y} |   } |  j | |  | k  d  S(   NRX   c           B   s   e  Z d    Z RS(   c         S   s   d  S(   N(   R   (   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR[   é   s    (   R   R   R[   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRX   č   s   (   R#   t   TrueR   RF   (   R   R]   RX   t   adapted(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt,   test___call___w___conform___miss_ob_providesć   s    	c         C   sA   |  j  t  } t   } t   } |  j | | |  | k  d  S(   N(   R#   R\   R   RF   (   R   R]   R`   t	   alternate(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt7   test___call___wo___conform___ob_no_provides_w_alternateî   s    		c         C   s/   |  j  t  } t   } |  j t | |  d  S(   N(   R#   R\   R   R-   t	   TypeError(   R   R]   R`   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt7   test___call___w___conform___ob_no_provides_wo_alternateô   s    	c         C   s8   |  j  t  } t   } |  j | j |  | k  d  S(   N(   R#   R_   R   RF   t	   __adapt__(   R   R]   R`   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___adapt___ob_providesů   s    	c            s   d d l  m } |  j t  } t   } g      f d   } d   } t | d | | g : |  j | j |  | k  |  j   | | f g  Wd  QXd  S(   Ni˙˙˙˙(   R9   c            s     j  |  | f  d  S(   N(   t   appendR   (   RY   R;   (   t   _missed(    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt
   _hook_miss  s    c         S   s   | S(   N(    (   RY   R;   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt	   _hook_hit  s    t   adapter_hooks(	   R>   R9   R#   R\   R   R@   RF   Rf   R   (   R   R9   R]   R`   Rj   Rk   (    (   Ri   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt(   test___adapt___ob_no_provides_uses_hooksţ   s    		(
   R   R   R   R#   R^   Ra   Rc   Re   Rg   Rm   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRR   Đ   s   							t   SpecificationTestsc           B   s   e  Z d    Z e d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z RS(   c         C   s   d d l  m } | S(   Ni˙˙˙˙(   t   Specification(   R
   Ro   (   R   Ro   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    c         C   s)   | t  k r |  j     S|  j   |  S(   N(   R    R   (   R   t   bases(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR#     s    c         C   s   d d l  m } |  j   } |  j | j d  |  j t | j  d  |  j | | j k  |  j | | j k  |  j t | j  d  d  S(   Ni˙˙˙˙(   t	   Interfacei   i    (    (	   R
   Rq   R#   R   t	   __bases__t   lenRE   RF   t
   dependents(   R   Rq   t   spec(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt	   test_ctor  s    c         C   sV   |  j    } t   } | j |  |  j t | j  d  |  j | j | d  d  S(   Ni   (   R#   t   DummyDependentt	   subscribeR   Rs   Rt   (   R   Ru   t   dep(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_subscribe_first_time!  s
    	c         C   sJ   |  j    } t   } | j |  | j |  |  j | j | d  d  S(   Ni   (   R#   Rw   Rx   R   Rt   (   R   Ru   Ry   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_subscribe_again(  s
    	c         C   s/   |  j    } t   } |  j t | j |  d  S(   N(   R#   Rw   R-   R.   t   unsubscribe(   R   Ru   Ry   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_unsubscribe_miss/  s    	c         C   sz   |  j    } t   } | j |  | j |  | j |  |  j | j | d  | j |  |  j | | j k  d  S(   Ni   (   R#   Rw   Rx   R|   R   Rt   RA   (   R   Ru   Ry   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_unsubscribe4  s    	c         C   sÚ   d d l  m } |  j   } t   } | j |  d | f d     Y} d | f d     Y} | f | _ |  j | j | g  |  j | j | d  | f | _ |  j | j j	 |  d   |  j | j | d  d  S(   Ni˙˙˙˙(   Rq   t   Ic           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   C  s   t   Jc           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   E  s   i   (   R
   Rq   R#   Rw   Rx   Rr   R   t   _changedRt   t   getR   (   R   Rq   Ru   Ry   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt8   test___setBases_subscribes_bases_and_notifies_dependents>  s    	c         C   s   d d l  m } d | f d     Y} |  j   } d | _ d | j | <| j |  |  j t | d |   |  k  |  j | | j k  d  S(   Ni˙˙˙˙(   Rq   R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   P  s   R   t   _v_attrs(    (	   R
   Rq   R#   R   RE   t   changedRF   R   RA   (   R   Rq   R   Ru   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt)   test_changed_clears_volatiles_and_impliedN  s    	c         C   s^   d d l  m } d | f d     Y} |  j | | g  } |  j t | j    | g  d  S(   Ni˙˙˙˙(   Rq   t   IFooc           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   [  s   (   R
   Rq   R#   R   R'   t
   interfaces(   R   Rq   R   Ru   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt"   test_interfaces_skips_already_seenY  s    c         C   sU   d d l  m } d | f d     Y} |  j |  } |  j | j | d t  d  S(   Ni˙˙˙˙(   Rq   R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   b  s   t   strict(   R
   Rq   R#   RA   t   extendsR_   (   R   Rq   R   Ru   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_extends_strict_wo_self`  s    c         C   s,   |  j    } |  j | j | d t  d  S(   NR   (   R#   RA   R   R_   (   R   Ru   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_extends_strict_w_selfg  s    c         C   s,   |  j    } |  j | j | d t  d  S(   NR   (   R#   RF   R   R\   (   R   Ru   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_extends_non_strict_w_selfk  s    c         C   sE   |  j    } t   } i | d 6| _ |  j | j d  | k  d  S(   NR4   (   R#   R   R   RF   R   (   R   Ru   R4   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_get_hit_w__v_attrso  s    	c            sť   d d l  m   d d l  m } d | f   f d     Y} d | f   f d     Y} |  j | | g  } |  j | j d  | j d  k  |  j | j d	  | j d	  k  d  S(
   Ni˙˙˙˙(   t	   Attribute(   Rq   R   c              s   e  Z   d   Z RS(   R4   (   R   R   R4   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   x  s   t   IBarc              s   e  Z   d   Z RS(   R   (   R   R   R   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   z  s   R4   R   (   R
   R   Rq   R#   RF   R   (   R   Rq   R   R   Ru   (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt"   test_get_hit_from_base_wo__v_attrsu  s    %(   R   R   R   R    R#   Rv   Rz   R{   R}   R~   R   R   R   R   R   R   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRn     s   							
							t   InterfaceClassTestsc           B   sŁ  e  Z d    Z d d- d. d. d. d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d   Z! d    Z" d!   Z# d"   Z$ d#   Z% d$   Z& d%   Z' d&   Z( d'   Z) d(   Z* d)   Z+ d*   Z, d+   Z- d,   Z. RS(/   c         C   s   d d l  m } | S(   Ni˙˙˙˙(   t   InterfaceClass(   R
   R   (   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    t   ITestc         C   s   |  j    | | | | |  S(   N(   R   (   R   R!   Rp   t   attrsR"   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR#     s    c         C   sk   |  j    } | d  } |  j | j d  |  j | j d  |  j | j d  |  j | j   d  d  S(   Nt   ITestingR$   (    (    (   R   R   R   R"   Rr   t   getBases(   R   t   klasst   inst(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR*     s    c         C   s,   |  j    } |  j t | d t   f  d  S(   NR   (   R   R-   Rd   R   (   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_ctor_bad_bases  s    c         C   sĂ   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} |  j   } | d	 d
 | } |  j | j d	  |  j | j d  |  j | j d  |  j | j   | j	    d  S(   Ni˙˙˙˙(   R   (   t   fromFunctionc           S   s   d S(   t	   DOCSTRINGN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _bar  s    R   R$   R4   R   R   R   (    (
   R
   R   R   R   R   R   R"   Rr   t   namest   keys(   R   R   R   R   t   ATTRSR   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt    test_ctor_w_attrs_attrib_methods  s    	c         C   s   i i  d 6} |  j    } | d d | } |  j | j d  |  j | j d  |  j | j d  |  j | j   | j    d  S(   Nt
   __locals__R   R   R$   (    (   R   R   R   R"   Rr   R   R    (   R   RĄ   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_ctor_attrs_w___locals__Ľ  s    c         C   s   d d l  m } i | d 6} |  j   } | d d | } |  j | j d  |  j | j d  |  j | j d  |  j t | j    g   d  S(   Ni˙˙˙˙(   t   _decorator_non_returnt   dropmeR   R   R$   (    (	   R
   RĽ   R   R   R   R"   Rr   R'   R   (   R   RĽ   RĄ   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt'   test_ctor_attrs_w__decorator_non_returnŽ  s    c         C   sI   d d l  m } i t   d 6} |  j   } |  j | | d d | d  S(   Ni˙˙˙˙(   t   InvalidInterfacet   invalidR   R   (   t   zope.interface.exceptionsR¨   R   R   R-   (   R   R¨   RĄ   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt#   test_ctor_attrs_w_invalid_attr_type¸  s    c         C   sH   i d d 6} |  j    } | d d | d d } |  j | j d  d  S(   Nt   ATTRR"   R   R   t   EXPLICIT(   R   R   R"   (   R   RĄ   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_ctor_w_explicit___doc__ž  s    c         C   s/   |  j    } |  j t | j    | g  d  S(   N(   R#   R   R'   R   (   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_interfacesÄ  s    c         C   sA   |  j    } |  j  d d | f } |  j | j   | f  d  S(   Nt   ISubRp   (   R#   R   R   (   R   RY   t   sub(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getBasesČ  s    c         C   s&   |  j    } |  j | j |   d  S(   N(   R#   RF   t   isEqualOrExtendedBy(   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt!   test_isEqualOrExtendedBy_identityÍ  s    c         C   sT   |  j    } |  j  d d | f } |  j | j |   |  j | j |   d  S(   NR°   Rp   (   R#   RF   Rł   RA   (   R   RY   Rą   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt!   test_isEqualOrExtendedBy_subifaceŃ  s    c         C   sN   |  j  d  } |  j  d  } |  j | j |   |  j | j |   d  S(   Nt   Onet   Another(   R#   RA   Rł   (   R   t   onet   another(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt"   test_isEqualOrExtendedBy_unrelated×  s    c         C   sž   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} i | d	 d  d
 6} |  j d d | } |  j d d | f d | } |  j t | j d t   d
 g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   ŕ  s    R   R$   R4   R   t   BazR   t   IBaseR   t   IDerivedRp   t   all(   R
   R   R   R#   R   t   sortedR   R\   (   R   R   R   R   t
   BASE_ATTRSt   DERIVED_ATTRSt   baset   derived(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt$   test_names_w_all_False_ignores_basesÝ  s    	c         C   s   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} |  j d	 |  } |  j t | j d
 t   d d g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   î  s    R   R$   R4   R   R   Rž   (   R
   R   R   R#   R   Rż   R   R_   (   R   R   R   R   RĄ   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_names_w_all_True_no_basesë  s    	c         C   sÄ   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} i | d	 d  d
 6} |  j d d | } |  j d d | f d | } |  j t | j d t   d d
 d g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   ů  s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   Rž   (   R
   R   R   R#   R   Rż   R   R_   (   R   R   R   R   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt$   test_names_w_all_True_w_bases_simpleö  s    	c   	      C   sÚ   d d l  m } d d l  m } d   } d   } i | d d  d 6| |  d	 6} i | |  d 6| d
 d  d 6} |  j d d | } |  j d d | f d | } |  j t | j d t   d	 d d g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _foo	  s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   Rž   (   R
   R   R   R#   R   Rż   R   R_   (	   R   R   R   R   RÇ   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt(   test_names_w_all_True_bases_w_same_names  s    		c   	      C   sÎ   d d l  m } d d l  m } d   } d   } i | d d  d 6| |  d	 6} i | |  d 6| d
 d  d 6} |  j d d | } |  j d d | f d | } |  j t |  d	 d d g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRÇ     s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   (   R
   R   R   R#   R   Rż   (	   R   R   R   R   RÇ   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___iter__  s    		c         C   sČ   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} i | d	 d  d
 6} |  j d d | } |  j d d | f d | } |  j t | j d t   d
 | d
 f g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   )  s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   Rž   (   R
   R   R   R#   R   Rż   t   namesAndDescriptionsR\   (   R   R   R   R   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt3   test_namesAndDescriptions_w_all_False_ignores_bases&  s    	c         C   s   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} |  j d	 |  } |  j t | j d
 t   d | d f d | d f g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   9  s    R   R$   R4   R   R   Rž   (   R
   R   R   R#   R   Rż   RĘ   R\   (   R   R   R   R   RĄ   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt-   test_namesAndDescriptions_w_all_True_no_bases6  s    	c         C   sâ   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} i | d	 d  d
 6} |  j d d | } |  j d d | f d | } |  j t | j d t   d | d f d
 | d
 f d | d f g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   G  s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   Rž   (   R
   R   R   R#   R   Rż   RĘ   R_   (   R   R   R   R   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt+   test_namesAndDescriptions_w_all_True_simpleD  s    	c   	      C   sř   d d l  m } d d l  m } d   } d   } i | d d  d 6| |  d	 6} i | |  d 6| d
 d  d 6} |  j d d | } |  j d d | f d | } |  j t | j d t   d	 | d	 f d | d f d | d f g  d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Y  s    c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRÇ   [  s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   Rž   (   R
   R   R   R#   R   Rż   RĘ   R_   (	   R   R   R   R   RÇ   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt7   test_namesAndDescriptions_w_all_True_bases_w_same_namesV  s    		c         C   s&   |  j    } |  j t | j d  d  S(   NR,   (   R#   R-   R.   t   getDescriptionFor(   R   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getDescriptionFor_missk  s    c         C   s   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} |  j d	 |  } |  j | j d  | d  |  j | j d  | d  d  S(
   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   r  s    R   R$   R4   R   R   (   R
   R   R   R#   R   RĎ   (   R   R   R   R   RĄ   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getDescriptionFor_hito  s    	c            s/   |  j        f d   } |  j t |  d  S(   Nc              s     d S(   NR,   (    (    (   R¸   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _test}  s    (   R#   R-   R.   (   R   RŇ   (    (   R¸   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___getitem___miss{  s    c         C   s   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} |  j d	 |  } |  j | d | d  |  j | d | d  d  S(
   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    R   R$   R4   R   R   (   R
   R   R   R#   R   (   R   R   R   R   RĄ   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___getitem___hit  s    	c         C   s#   |  j    } |  j d | k  d  S(   NR,   (   R#   RA   (   R   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___contains___miss  s    c         C   s   d d l  m } d d l  m } d   } i | d d  d 6| |  d 6} |  j d	 |  } |  j d | k  |  j d | k  d  S(
   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    R   R$   R4   R   R   (   R
   R   R   R#   RF   (   R   R   R   R   RĄ   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___contains___hit  s    	c         C   s)   |  j    } |  j | j d  d   d  S(   NR,   (   R#   R   t   directR   (   R   R¸   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_direct_miss  s    c   	      C   s  d d l  m } d d l  m } d   } d   } i | d d  d 6| |  d	 6} i | |  d 6| d
 d  d 6} |  j d d | } |  j d d | f d | } |  j | j d  | d  |  j | j d  | d  |  j | j d	  d   d  S(   Ni˙˙˙˙(   R   (   R   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   ¤  s    c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRÇ   Ś  s    R   R$   R4   R   Rť   R   Rź   R   R˝   Rp   (   R
   R   R   R#   R   R×   R   (	   R   R   R   R   RÇ   RŔ   RÁ   RÂ   RĂ   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt    test_direct_hit_local_miss_basesĄ  s    		c         C   s)   |  j    } |  j | j d  d   d  S(   NR,   (   R#   R   t   queryDescriptionForR   (   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_queryDescriptionFor_miss´  s    c         C   sY   d d l  m } i | d d  d 6} |  j d |  } |  j | j d  | d  d  S(   Ni˙˙˙˙(   R   t   Titlet   Descriptiont   attrR   (   R>   R   R#   R   RÚ   (   R   R   RĄ   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_queryDescriptionFor_hit¸  s    c            sv   g      f d   } |  j    } t   } | j d | g  |  j | j |  d   |  j   | f i  f g  d  S(   Nc             s     j  |  | f  t S(   N(   Rh   R_   (   R   R   (   t   _called_with(    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt	   _passableŔ  s    R	   (   R#   R   R5   R   t   validateInvariantsR   (   R   Rá   RY   R;   (    (   Rŕ   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_validateInvariants_passž  s    	c            sş   d d l  m   g    f d   } g      f d   } |  j   } t   } | j d | | g  |  j   | j |  |  j  | f i  f g  |  j  | f i  f g  d  S(   Ni˙˙˙˙(   t   Invalidc             s     j  |  | f  t S(   N(   Rh   R_   (   R   R   (   t   _passable_called_with(    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRá   Ě  s    c             s    j  |  | f     d  S(   N(   Rh   (   R   R   (   Rä   t   _fail_called_with(    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _failĐ  s    R	   (   RŞ   Rä   R#   R   R5   R-   Râ   R   (   R   Rá   Rç   RY   R;   (    (   Rä   Rć   Rĺ   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt-   test_validateInvariants_fail_wo_errors_passedÉ  s    	c            sż   d d l  m   g  } g      f d   } |  j   } t   } | j d | g  |  j   | j | |  |  j  | f i  f g  |  j t |  d  |  j	 t
 | d     d  S(   Ni˙˙˙˙(   Rä   c             s    j  |  | f     d  S(   N(   Rh   (   R   R   (   Rä   Rć   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRç   Ţ  s    R	   i   i    (   RŞ   Rä   R#   R   R5   R-   Râ   R   Rs   RF   t
   isinstance(   R   t   _errorsRç   RY   R;   (    (   Rä   Rć   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt,   test_validateInvariants_fail_w_errors_passedÚ  s    	c            sâ   d d l  m   g    f d   } g      f d   } |  j d  } |  j d | f  } t   } | j d | g  | j d | g  |  j   | j |  |  j  | f i  f g  |  j  | f i  f g  d  S(   Ni˙˙˙˙(   Rä   c             s     j  |  | f  t S(   N(   Rh   R_   (   R   R   (   Rĺ   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRá   ě  s    c             s    j  |  | f     d  S(   N(   Rh   (   R   R   (   Rä   Rć   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRç   đ  s    Rź   R˝   R	   (   RŞ   Rä   R#   R   R5   R-   Râ   R   (   R   Rá   Rç   RÂ   RĂ   R;   (    (   Rä   Rć   Rĺ   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt5   test_validateInvariants_fail_in_base_wo_errors_passedé  s    	c            s  d d l  m   g  } g    f d   } g      f d   } |  j d  } |  j d | f  } t   } | j d | g  | j d | g  |  j   | j | |  |  j  | f i  f g  |  j  | f i  f g  |  j t |  d  |  j	 t
 | d	     d  S(
   Ni˙˙˙˙(   Rä   c             s     j  |  | f  t S(   N(   Rh   R_   (   R   R   (   Rĺ   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRá      s    c             s    j  |  | f     d  S(   N(   Rh   (   R   R   (   Rä   Rć   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRç     s    Rź   R˝   R	   i   i    (   RŞ   Rä   R#   R   R5   R-   Râ   R   Rs   RF   Ré   (   R   Rę   Rá   Rç   RÂ   RĂ   R;   (    (   Rä   Rć   Rĺ   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt4   test_validateInvariants_fail_in_base_w_errors_passedü  s     	c         C   s)   |  j  d  } |  j | j   d  d  S(   Nt   PickleMe(   R#   R   t
   __reduce__(   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___reduce__  s    c         C   s/   |  j  d  } |  j t |  t d   d  S(   Nt   HashMes#   zope.interface.tests.test_interface(   Rń   s#   zope.interface.tests.test_interface(   R#   R   t   hash(   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___hash___normal  s    c         C   sć   d d  l  } y d d l  m } Wn t k
 r4 d  SXd |  j   f d     Y} |   } | d t  w } | j d  |  j t |  d  |  j t |  d  |  j	 | d j
 t k  |  j t | d j  d	  Wd  QXd  S(
   Ni˙˙˙˙(   t   catch_warningst   Derivedc           B   s   e  Z d    Z RS(   c         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   __init__#  s    (   R   R   Rö   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRő   "  s   t   recordt   alwaysi   i    s-   Hashing uninitialized InterfaceClass instance(   t   warningsRô   t   ImportErrorR   R_   t   simplefilterR   Rň   Rs   RF   t   categoryt   UserWarningt   strt   message(   R   Rů   Rô   Rő   RĂ   t   warned(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt$   test___hash___missing_required_attrs  s    	c         C   sô   |  j    } |  j | d  k   |  j | d  k  |  j | d  k  |  j | d  k  |  j | d  k  |  j | d  k  |  j d  | k   |  j d  | k  |  j d  | k  |  j d  | k  |  j d  | k  |  j d  | k  d  S(   N(   R#   RF   R   RA   (   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_comparison_with_None.  s    c         C   s   |  j    } |  j | | k   |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  d  S(   N(   R#   RA   RF   (   R   RY   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt"   test_comparison_with_same_instance>  s    c         C   s  |  j  d d d } |  j  d d d } |  j | | k   |  j | | k   |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  |  j | | k  d  S(   Nt   INameR   s   zope.interface.tests.ones   zope.interface.tests.other(   R#   RF   RA   (   R   R¸   t   other(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt8   test_comparison_with_same_named_instance_in_other_moduleH  s    (    N(/   R   R   R   R   R#   R*   R   R˘   R¤   R§   RŤ   RŽ   RŻ   R˛   R´   Rľ   Rş   RÄ   RĹ   RĆ   RČ   RÉ   RË   RĚ   RÍ   RÎ   RĐ   RŃ   RÓ   RÔ   RŐ   RÖ   RŘ   RŮ   RŰ   Rß   Ră   Rč   Rë   Rě   Rí   Rđ   Ró   R  R  R  R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     sZ   							
																																				
t   InterfaceTestsc           B   s  e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d   Z! d    Z" d!   Z# d"   Z$ d#   Z% d$   Z& d%   Z' d&   Z( d'   Z) d(   Z* d)   Z+ d*   Z, d+   Z- RS(,   c            sZ   d d l  m } d d l  m   d | f   f d     Y} |  j | d j | k  d  S(   Ni˙˙˙˙(   Rq   (   R   t   I1c              s   e  Z   d   Z RS(   s   My attr(   R   R   RŢ   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  a  s   RŢ   (   R>   Rq   R   RF   R9   (   R   Rq   R  (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt!   test_attributes_link_to_interface]  s    c         C   sD   d d l  m } d | f d     Y} |  j | d j | k  d  S(   Ni˙˙˙˙(   Rq   R  c           B   s   e  Z d    Z RS(   c         S   s   d  S(   N(    (   R4   R   t   bingo(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   methodk  s    (   R   R   R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  i  s   R  (   R>   Rq   RF   R9   (   R   Rq   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_methods_link_to_interfacef  s    c            s  d d l  m } d d l  m } d d l  m } d | f d     Y  d | f d     Y} d	 t f   f d
     Y} |   } |  j   j |   |  j | j |   |  j   | |  k  |  j | | |  k  |  j   | |  k  |  j | | |  k  d  S(   Ni˙˙˙˙(   Rq   (   RI   (   R=   t   ICurrentc           B   s   e  Z d    Z d   Z RS(   c         S   s   d  S(   N(    (   t   at   b(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   method1v  s    c         S   s   d  S(   N(    (   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   method2x  s    (   R   R   R  R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  u  s   	t   IOtherc           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  {  s   t   Currentc              s    e  Z   Z d    Z d   Z RS(   c         S   s   d S(   Ni   (    (   R   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    c         S   s   d S(   Ni   (    (   R   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    (   R   R   t   __implemented__R  R  (    (   R  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ~  s   	(   R>   Rq   RI   R=   R   RF   RA   (   R   Rq   RI   R=   R  R  t   current(    (   R  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_classImplements_simplep  s    	c            s  d d l  m } d d l  m } d d l  m } d | f d     Y  d   f d     Y} d	 d   f d
     Y} |   } |  j   j |   |  j | j |   |  j   | |  k  |  j | | |  k  |  j   | |  k  |  j | | |  k  d  S(   Ni˙˙˙˙(   Rq   (   RI   (   R=   Rź   c           B   s   e  Z d    Z RS(   c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    (   R   R   R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź     s   R˝   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝     s   R  c              s   e  Z   Z d    Z RS(   c         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    (   R   R   R  R  (    (   Rź   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s   (    (   R>   Rq   RI   R=   RF   RA   (   R   Rq   RI   R=   R˝   R  R  (    (   Rź   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt%   test_classImplements_base_not_derived  s    	c            sS  d d l  m } d d l  m } d d l  m } d | f d     Y} d | f d     Y  d	 t f   f d
     Y} |   } |  j | j |   |  j   j |   |  j | | |  k  |  j | | |  j   k  |  j   | |  k  |  j | | |  k  |  j | | |  j   k  |  j   | |  k  d  S(   Ni˙˙˙˙(   Rq   (   RI   (   R=   Rź   c           B   s   e  Z d    Z RS(   c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ş  s    (   R   R   R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź   Š  s   R˝   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝   ­  s   R  c              s   e  Z   Z d    Z RS(   c         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ˛  s    (   R   R   R  R  (    (   R˝   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  °  s   (   R>   Rq   RI   R=   R   RF   RA   t	   flattened(   R   Rq   RI   R=   Rź   R  R  (    (   R˝   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt%   test_classImplements_base_and_derived¤  s    	c            sJ  d d l  m } d d l  m } d d l  m } d | f d     Y  d   f d     Y d	 t f   f d
     Y} d t f  f d     Y} d | | f d     Y} |   } |  j   j |   |  j  j |   |  j   | |  k  |  j  | |  k  |  j   | |  k  |  j  | |  k  d  S(   Ni˙˙˙˙(   Rq   (   RI   (   R=   t   ILeftc           B   s   e  Z d    Z RS(   c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ć  s    (   R   R   R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ĺ  s   t   IRightc           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  É  s   t   Leftc              s   e  Z   Z d    Z RS(   c         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ď  s    (   R   R   R  R  (    (   R  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ě  s   t   Rightc              s   e  Z   Z RS(    (   R   R   R  (    (   R  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ň  s   t   Ambic           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ő  s   (   R>   Rq   RI   R=   R   RF   (   R   Rq   RI   R=   R  R  R  t   ambi(    (   R  R  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_classImplements_multipleŔ  s    	c            sĘ  d d l  m } d d l  m } d d l  m } d | f d     Y  d   f d     Y d	 | f d
     Y d d   f d     Y d t f  f d     Y} d t f  f d     Y d  | f   f d     Y} |   } |  j   j |   |  j  j |   |  j  j |   |  j   | |  k  |  j  | |  k  |  j  | |  k  |  j   | |  k  |  j  | |  k  |  j  | |  k  d  S(   Ni˙˙˙˙(   Rq   (   RI   (   R=   R  c           B   s   e  Z d    Z RS(   c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  č  s    (   R   R   R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ć  s   R  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ë  s   R  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  î  s   R  c              s   e  Z   Z d    Z RS(   c         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ô  s    (   R   R   R  R  (    (   R  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ń  s   R  c              s   e  Z   Z RS(    (   R   R   R  (    (   R  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ÷  s   t   Otherc              s   e  Z   Z RS(    (   R   R   R  (    (   R  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR!  ú  s   t   Mixedc              s   e  Z   j  j f Z RS(    (   R   R   R  (    (   R  R!  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR"  ý  s   (    (   R>   Rq   RI   R=   R   RF   RA   (   R   Rq   RI   R=   R  R"  t   mixed(    (   R  R  R  R  R!  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt2   test_classImplements_multiple_w_explict_implementsá  s(    "	c         C   sö   d d l  m } | j } | d  } | d | g  } | d  } | d | | g  } |  j | j |   |  j | j |   |  j | j |   |  j | j |   |  j | j |   |  j | j |   |  j | j |   d  S(   Ni˙˙˙˙(   Rq   t   FunInterfacet   BarInterfacet   BobInterfacet   BazInterface(   R>   Rq   t	   __class__RF   R   RA   (   R   Rq   t   newR%  R&  R'  R(  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   testInterfaceExtendsInterface  s    	c            s   d d l  m   d d l  m } d d l m } d d l m  d | f    f d     Y d t f  f d	     Y} |  j |  |   d  S(
   Ni˙˙˙˙(   R   (   Rq   (   t   verifyClass(   t   _ut   ICheckMec              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  &  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR.  #  s   t   CheckMec              s   e  Z   Z d  Z d   Z RS(   t   valuec         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  -  s    (   R   R   R  RŢ   R  (    (   R.  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR/  )  s   (	   R>   R   Rq   t   zope.interface.verifyR,  t   zope.interface._compatR-  R   RF   (   R   Rq   R,  R/  (    (   R   R.  R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_verifyClass  s    c            s   d d l  m   d d l  m } d d l m } d d l m  d | f    f d     Y d t f  f d	     Y} |   } |  j |  |   d  S(
   Ni˙˙˙˙(   R   (   Rq   (   t   verifyObject(   R-  R.  c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ;  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR.  8  s   R/  c              s   e  Z   Z d  Z d   Z RS(   R0  c         S   s   d  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  B  s    (   R   R   R  RŢ   R  (    (   R.  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR/  >  s   (	   R>   R   Rq   R1  R4  R2  R-  R   RF   (   R   Rq   R4  R/  t   check_me(    (   R   R.  R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_verifyObject2  s    	c         C   s@   d d l  m } d | f d     Y} |  j | j |   d  S(   Ni˙˙˙˙(   Rq   t   AnInterfacec           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR7  L  s   (   R>   Rq   RF   R=   (   R   Rq   R7  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt(   test_interface_object_provides_InterfaceI  s    c            su   d d l  m   d d l  m } d d l m  d | f    f d     Y} |  j t | j    d d g  d  S(	   Ni˙˙˙˙(   R   (   Rq   (   R-  t   ISimplec              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Y  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR9  V  s   RŢ   R  (   R>   R   Rq   R2  R-  R   Rż   R   (   R   Rq   R9  (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_names_simpleQ  s
    c            sĹ   d d l  m   d d l  m } d d l m  d | f    f d     Y} d | f    f d     Y} |  j t | j    d	 d
 d g  |  j t | j d t   d d	 d
 d g  d  S(   Ni˙˙˙˙(   R   (   Rq   (   R-  Rź   c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  f  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź   c  s   R˝   c              s,   e  Z    d    Z d   Z d   Z RS(   s   My attr2c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  l  s    c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  o  s    (   R   R   t   attr2R  R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝   i  s   	R;  R  R  Rž   RŢ   (	   R>   R   Rq   R2  R-  R   Rż   R   R_   (   R   Rq   Rź   R˝   (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_names_derived^  s    	c            sc  d d l  m   d d l m } d d l  m } d d l m  d | f    f d     Y} t | j    } |  j	 t
 |  d  |  j	 | d	 d	 d
  |  j t | d	 d     |  j	 | d	 d j d
  |  j	 | d	 d j d  |  j	 | d d	 d  |  j t | d d |   |  j	 | d d j d  |  j	 | d d j d  d  S(   Ni˙˙˙˙(   R   (   t   Method(   Rq   (   R-  R9  c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR9  }  s   i   i    RŢ   i   s   My attrR  s	   My method(   R>   R   R
   R=  Rq   R2  R-  Rż   RĘ   R   Rs   RF   Ré   R   R"   (   R   R=  Rq   R9  t   name_values(    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt    test_namesAndDescriptions_simplew  s    c            sĚ  d d l  m   d d l  m } d d l m } d d l m  d | f    f d     Y} d | f    f d	     Y} t | j    } |  j	 t
 |  d
  |  j	 | d d d  |  j t | d d     |  j	 | d d j d  |  j	 | d d j d  |  j	 | d d d  |  j t | d d |   |  j	 | d d j d  |  j	 | d d j d  |  j	 | d d d  |  j t | d d |   |  j	 | d d j d  |  j	 | d d j d  t | j d t   } |  j	 t
 |  d  |  j	 | d d d  |  j t | d d     |  j	 | d d j d  |  j	 | d d j d  |  j	 | d d d  |  j t | d d     |  j	 | d d j d  |  j	 | d d j d  |  j	 | d d d  |  j t | d d |   |  j	 | d d j d  |  j	 | d d j d  |  j	 | d
 d d  |  j t | d
 d |   |  j	 | d
 d j d  |  j	 | d
 d j d  d  S(   Ni˙˙˙˙(   R   (   Rq   (   R=  (   R-  Rź   c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź     s   R˝   c              s,   e  Z    d    Z d   Z d   Z RS(   s   My attr2c           S   s   d S(   s   My method, overriddenN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    c           S   s   d S(   s
   My method2N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ą  s    (   R   R   R;  R  R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝     s   	i   i    R;  i   s   My attr2R  s   My method, overriddeni   R  s
   My method2Rž   i   RŢ   s   My attr(   R>   R   Rq   R
   R=  R2  R-  Rż   RĘ   R   Rs   RF   Ré   R   R"   R_   (   R   Rq   R=  Rź   R˝   R>  (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt!   test_namesAndDescriptions_derived  sL    	c         C   s@   d d l  m } d | f d     Y} |  j t | j d  d  S(   Ni˙˙˙˙(   Rq   t   IEmptyc           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRA  Ë  s   R,   (   R>   Rq   R-   R.   RĎ   (   R   Rq   RA  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt*   test_getDescriptionFor_nonesuch_no_defaultČ  s    c            sů   d d l  m   d d l m } d d l  m } d d l m  d | f    f d     Y} | j d  } |  j t	 |     |  j
 | j d  |  j
 | j d	  | j d
  } |  j t	 | |   |  j
 | j d
  |  j
 | j d  d  S(   Ni˙˙˙˙(   R   (   R=  (   Rq   (   R-  R9  c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ů  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR9  Ö  s   RŢ   s   My attrR  s	   My method(   R>   R   R
   R=  Rq   R2  R-  RĎ   RF   Ré   R   R   R"   (   R   R=  Rq   R9  t   a_desct   m_desc(    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getDescriptionFor_simpleĐ  s    c   	         sŽ  d d l  m   d d l m } d d l  m } d d l m  d | f    f d     Y} d | f    f d	     Y} | j d
  } |  j t	 |     |  j
 | j d
  |  j
 | j d  | j d  } |  j t	 | |   |  j
 | j d  |  j
 | j d  | j d  } |  j t	 |     |  j
 | j d  |  j
 | j d  | j d  } |  j t	 | |   |  j
 | j d  |  j
 | j d  d  S(   Ni˙˙˙˙(   R   (   R=  (   Rq   (   R-  Rź   c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ď  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź   ě  s   R˝   c              s,   e  Z    d    Z d   Z d   Z RS(   s   My attr2c           S   s   d S(   s   My method, overriddenN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ő  s    c           S   s   d S(   s
   My method2N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ř  s    (   R   R   R;  R  R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝   ň  s   	RŢ   s   My attrR  s   My method, overriddenR;  s   My attr2R  s
   My method2(   R>   R   R
   R=  Rq   R2  R-  RĎ   RF   Ré   R   R   R"   (	   R   R=  Rq   Rź   R˝   RC  RD  t   a2_desct   m2_desc(    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getDescriptionFor_derivedć  s,    	c         C   s@   d d l  m } d | f d     Y} |  j t | j d  d  S(   Ni˙˙˙˙(   Rq   RA  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRA    s   R,   (   R>   Rq   R-   R.   t   __getitem__(   R   Rq   RA  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___getitem__nonesuch  s    c            sď   d d l  m   d d l m } d d l  m } d d l m  d | f    f d     Y} | d } |  j t |     |  j	 | j
 d  |  j	 | j d	  | d
 } |  j t | |   |  j	 | j
 d
  |  j	 | j d  d  S(   Ni˙˙˙˙(   R   (   R=  (   Rq   (   R-  R9  c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR9    s   RŢ   s   My attrR  s	   My method(   R>   R   R
   R=  Rq   R2  R-  RF   Ré   R   R   R"   (   R   R=  Rq   R9  RC  RD  (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___getitem__simple  s    

c   	         s  d d l  m   d d l m } d d l  m } d d l m  d | f    f d     Y} d | f    f d	     Y} | d
 } |  j t |     |  j	 | j
 d
  |  j	 | j d  | d } |  j t | |   |  j	 | j
 d  |  j	 | j d  | d } |  j t |     |  j	 | j
 d  |  j	 | j d  | d } |  j t | |   |  j	 | j
 d  |  j	 | j d  d  S(   Ni˙˙˙˙(   R   (   R=  (   Rq   (   R-  Rź   c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  6  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź   3  s   R˝   c              s,   e  Z    d    Z d   Z d   Z RS(   s   My attr2c           S   s   d S(   s   My method, overriddenN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  <  s    c           S   s   d S(   s
   My method2N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ?  s    (   R   R   R;  R  R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝   9  s   	RŢ   s   My attrR  s   My method, overriddenR;  s   My attr2R  s
   My method2(   R>   R   R
   R=  Rq   R2  R-  RF   Ré   R   R   R"   (	   R   R=  Rq   Rź   R˝   RC  RD  RF  RG  (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___getitem___derived-  s,    	



c         C   s=   d d l  m } d | f d     Y} |  j d | k  d  S(   Ni˙˙˙˙(   Rq   RA  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRA  Y  s   R,   (   R>   Rq   RA   (   R   Rq   RA  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___contains__nonesuchV  s    c            sy   d d l  m   d d l  m } d d l m  d | f    f d     Y} |  j d | k  |  j d | k  d  S(	   Ni˙˙˙˙(   R   (   Rq   (   R-  R9  c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  f  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR9  c  s   RŢ   R  (   R>   R   Rq   R2  R-  RF   (   R   Rq   R9  (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___contains__simple^  s    c            sž   d d l  m   d d l  m } d d l m  d | f    f d     Y} d | f    f d     Y} |  j d	 | k  |  j d
 | k  |  j d | k  |  j d | k  d  S(   Ni˙˙˙˙(   R   (   Rq   (   R-  Rź   c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  t  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź   q  s   R˝   c              s,   e  Z    d    Z d   Z d   Z RS(   s   My attr2c           S   s   d S(   s   My method, overriddenN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  z  s    c           S   s   d S(   s
   My method2N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  }  s    (   R   R   R;  R  R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝   w  s   	RŢ   R  R;  R  (   R>   R   Rq   R2  R-  RF   (   R   Rq   Rź   R˝   (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___contains__derivedl  s    	c         C   s@   d d l  m } d | f d     Y} |  j t |  g   d  S(   Ni˙˙˙˙(   Rq   RA  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRA    s   (   R>   Rq   R   R'   (   R   Rq   RA  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___iter__empty  s    c            su   d d l  m   d d l  m } d d l m  d | f    f d     Y} |  j t t |   d d g  d  S(	   Ni˙˙˙˙(   R   (   Rq   (   R-  R9  c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR9    s   RŢ   R  (   R>   R   Rq   R2  R-  R   Rż   R'   (   R   Rq   R9  (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___iter__simple  s
    c            s   d d l  m   d d l  m } d d l m  d | f    f d     Y} d | f    f d     Y} |  j t t |   d	 d
 d d g  d  S(   Ni˙˙˙˙(   R   (   Rq   (   R-  Rź   c              s#   e  Z    d    Z d   Z RS(   s   My attrc           S   s   d S(   s	   My methodN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ˘  s    (   R   R   RŢ   R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRź     s   R˝   c              s,   e  Z    d    Z d   Z d   Z RS(   s   My attr2c           S   s   d S(   s   My method, overriddenN(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ¨  s    c           S   s   d S(   s
   My method2N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ť  s    (   R   R   R;  R  R  (    (   R   R-  (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR˝   Ľ  s   	RŢ   R;  R  R  (   R>   R   Rq   R2  R-  R   Rż   R'   (   R   Rq   Rź   R˝   (    (   R   R-  sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___iter__derived  s    	c         C   sM   d d l  m } d | f d     Y} | d } |  j | j d  d  d  S(   Ni˙˙˙˙(   Rq   t   ITagMec           B   s   e  Z d    Z d e _ RS(   c           S   s   d  S(   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ľ  s    i   (   R   R   R  t   optional(    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRS  ´  s   	R  RT  i   (   R>   Rq   R   R/   (   R   Rq   RS  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt-   test_function_attributes_become_tagged_valuesą  s    
c         C   sS   d d l  m } d | f d     Y} |  j | j d  |  j t |  g   d  S(   Ni˙˙˙˙(   Rq   t   IHaveADocStringc           B   s   e  Z d  Z RS(   t   xxx(   R   R   R"   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRV  ż  s   RW  (   R>   Rq   R   R"   R'   (   R   Rq   RV  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___doc___non_elementź  s    c            sl   d d l  m   d d l  m } d | f   f d     Y} |  j | j d  |  j t |  d g  d  S(   Ni˙˙˙˙(   R   (   Rq   RV  c              s   e  Z d  Z   d  Z RS(   RW  s   the doc(   R   R   R"   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRV  É  s   R$   R"   (   R>   R   Rq   R   R"   R'   (   R   Rq   RV  (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___doc___as_elementĹ  s
    c   
      C   sč   d d l  m } |  j | | j |  g  } y | j | |  Wn* | k
 rl } |  j | j d |  n X|  j d  |  j t |  |  g  | D] } | j d ^ q } | j   x' | D] }	 |  j |	 | j	 d   qÁ Wd  S(   Ni˙˙˙˙(   Rä   i    (
   RŞ   Rä   R-   Râ   R   R   t   _assertRs   t   sortt   pop(
   R   t   has_invariantt	   error_lent
   error_msgsRY   Rä   t   et   errort   msgst   msg(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _errorsEqualĐ  s     
c            s'  d d l  m   d d l  m } d d l  m } d d l  m  d | f    f d     Y} d t f d	     Y} |   } | | |  |  j | j d
  t g  |  j | j	 |  d   d | _ |  j | j	 |  d   d | _ |  j | j	 |  d   | ` |  j | d d g |  d  S(   Ni˙˙˙˙(   R   (   Rq   (   t   directlyProvides(   R   t
   IInvariantc              s*   e  Z   d   Z   d  Z  e  RS(   R4   s*   bar; must eval to Boolean True if foo does(   R   R   R4   R   t   _ifFooThenBar(    (   R   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRf  ç  s   t   HasInvariantc           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRh  ě  s   R	   i   i*   i   s   If Foo, then Bar!(   R>   R   Rq   Re  R   R   R   R/   Rg  Râ   R   R   R4   Rd  (   R   Rq   Re  Rf  Rh  R]  (    (   R   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_invariant_simpleá  s$    	
		c            sm  d d l  m   d d l  m } d d l  m } d d l  m  d | f    f d     Y} d | f  f d	     Y} d
 t f d     Y} |  j | j d  t g  |   } | | |  d | _	 |  j
 | d d g |  d | _	 d | _ |  j
 | d d g |  d | _	 d | _ |  j
 | d d d g |  d | _	 d | _ |  j | j |  d   d  S(   Ni˙˙˙˙(   R   (   Rq   (   Re  (   R   Rf  c              s*   e  Z   d   Z   d  Z  e  RS(   R4   s*   bar; must eval to Boolean True if foo does(   R   R   R4   R   Rg  (    (   R   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRf    s   t   ISubInvariantc              s   e  Z   e  RS(    (   R   R   t   _barGreaterThanFoo(    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRj  
  s   Rh  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRh    s   R	   i*   i   s   If Foo, then Bar!i   s%   Please, Boo MUST be greater than Foo!i    (   R>   R   Rq   Re  R   R   R   R/   Rk  R4   Rd  R   Râ   R   (   R   Rq   Re  Rf  Rj  Rh  R]  (    (   R   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_invariant_nested˙  s8    
								c            sx  d d l  m   d d l  m } d d l  m } d d l  m  d | f    f d     Y} d t f d	     Y} |   } | | |  d
 | _ | j d  } | } | j t	  | j
 d |  |  j | d d g |  d | _ d | _ |  j | d d g |  d | _ d | _ |  j | d d d g |  d | _ d | _ |  j | j |  d   | j
 d |  d  S(   Ni˙˙˙˙(   R   (   Rq   (   Re  (   R   Rf  c              s*   e  Z   d   Z   d  Z  e  RS(   R4   s*   bar; must eval to Boolean True if foo does(   R   R   R4   R   Rg  (    (   R   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRf  4  s   Rh  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRh  9  s   i*   R	   i   s   If Foo, then Bar!i   s%   Please, Boo MUST be greater than Foo!i    (   R>   R   Rq   Re  R   R   R4   R/   Rh   Rk  R5   Rd  R   R   Râ   R   (   R   Rq   Re  Rf  Rh  R]  t   old_invariantsR	   (    (   R   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_invariant_mutandis.  s:    								c            sŤ   d d l  m } d d l  m   d | f d     Y} |  j | j d  |  j t |  g   d | f   f d     Y} |  j | j d  |  j t |  d	 g  d  S(
   Ni˙˙˙˙(   Rq   (   R   R   c           B   s   e  Z d  Z RS(   RW  (   R   R   R"   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   f  s   RW  c              s   e  Z d  Z   d  Z RS(   RW  s   the doc(   R   R   R"   (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   l  s   R$   R"   (   R>   Rq   R   R   R"   R'   (   R   Rq   R   (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___doc___elementc  s    c         C   su   d d  l  } | j d d k  rq d d l m } d | f d     Y} d d	 d     Y} |  j t | j |  n  d  S(
   Ni˙˙˙˙i    t   3(   Rq   R   c           B   s   e  Z d  Z RS(   RW  (   R   R   R"   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   |  s   t   OldStylec           B   s   e  Z d  Z RS(   N(   R   R   R   t   __providedBy__(    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRq    s   (    (   t   syst   versionR>   Rq   R-   t   AttributeErrorR=   (   R   Rs  Rq   R   Rq  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   testIssue228t  s    c            s
  d d l  m } d d l  m   d d l  m } d d l  m  d d l m  d | f     f d     Y} | |  d	 t f d
     Y } | j | d d   | j | d d   y | j | d d   Wn)  k
 r} |  j	 t
 |  d  n Xd  S(   Ni˙˙˙˙(   Rq   (   R   (   t   implementer(   R   (   Rä   t   IRangec              s5   e  Z   d   Z   d  Z   f d    Z RS(   s   Lower bounds   Upper boundc            s%   |  j  |  j k  r!   d   n  d  S(   Ns	   max < min(   t   maxt   min(   t   ob(   Rä   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   range_invariant  s    (   R   R   Rz  Ry  R|  (    (   R   Rä   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRx    s   t   Rangec           B   s   e  Z d    Z RS(   c         S   s   | | |  _  |  _ d  S(   N(   Rz  Ry  (   R   Rz  Ry  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRö     s    (   R   R   Rö   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR}    s   i   i   s	   max < min(   R>   Rq   R   Rw  R   RŞ   Rä   R   Râ   R   Rţ   (   R   Rq   Rw  Rx  R}  R`  (    (   R   Rä   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_invariant_as_decorator  s    "	c            s   d d l  m   d d l  m } d d l  m  d | f    f d     Y} d t f d     Y} |  j | j d	  d
  |  j d	 | j   k  d  S(   Ni˙˙˙˙(   R   (   Rq   (   R   t   ITaggedc              s-   e  Z   d   Z   d  Z  d d  RS(   R4   s*   bar; must eval to Boolean True if foo doesR   t   Spam(   R   R   R4   R   (    (   R   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ś  s   Rh  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRh  Ť  s   R   R  (	   R>   R   Rq   R   R   R   R/   RF   R(   (   R   Rq   R  Rh  (    (   R   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_taggedValueĄ  s    c            sš   d d l  m } d d l  m   d | f   f d     Y} d | f d     Y} d | f d	     Y} |  j | j d
  | j d
  k  | f | _ |  j | j d
  d  k  d  S(   Ni˙˙˙˙(   Rq   (   R   R  c              s   e  Z   d   Z RS(   R  (   R   R   R  (    (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ¸  s   t   I2c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ť  s   t   I3c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ž  s   R  (   R>   Rq   R   RF   R   Rr   R   (   R   Rq   R  R  R  (    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt!   test_description_cache_managementą  s    %c         C   su   d d l  m } d d l  m } d | f d     Y} | |  d t f d     Y } |  j | |    d  d  S(	   Ni˙˙˙˙(   Rq   (   Rw  R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Ę  s   t   Cc           B   s   e  Z d    Z RS(   c         S   s   d S(   Ni    (    (   R   t   proto(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR[   Ď  s    (   R   R   R[   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Í  s   i    (   R>   Rq   Rw  R   R   (   R   Rq   Rw  R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt$   test___call___defers_to___conform___Ć  s    c         C   s~   d d l  m } d d l  m } d | f d     Y} | |  d t f d     Y } |   } |  j | |  | k  d  S(   Ni˙˙˙˙(   Rq   (   Rw  R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Ř  s   R  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  Ű  s   (   R>   Rq   Rw  R   RF   (   R   Rq   Rw  R   R  t   c(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___call___object_implementsÔ  s    	c         C   s\   d d l  m } d | f d     Y} d t f d     Y} |   } |  j t | |  d  S(   Ni˙˙˙˙(   Rq   R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   ĺ  s   R  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  č  s   (   R>   Rq   R   R-   Rd   (   R   Rq   R   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___call___miss_wo_alternateâ  s
    	c         C   se   d d l  m } d | f d     Y} d t f d     Y} |   } |  j | | |   |  k  d  S(   Ni˙˙˙˙(   Rq   R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   ń  s   R  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  ô  s   (   R>   Rq   R   RF   (   R   Rq   R   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___call___miss_w_alternateî  s
    	c   
         s´   d d l  m } d d l m } | } d   }   f d   } d | f d     Y} d t f d	     Y} |   } | }	 | | g | (z   j | |    k  Wd  |	 | (Xd  S(
   Ni˙˙˙˙(   Rq   (   Rl   c         S   s   d  S(   N(    (   RY   R;   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _miss˙  s    c            s     S(   N(    (   RY   R;   (   R   (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _hit  s    R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s   R  c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s   (   R>   Rq   R
   Rl   R   RF   (
   R   Rq   Rl   t	   old_hooksR  R  R   R  R  t   old_adapter_hooks(    (   R   sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test___call___w_adapter_hookú  s    		(.   R   R   R	  R  R  R  R  R   R$  R+  R3  R6  R8  R:  R<  R?  R@  RB  RE  RH  RJ  RK  RL  RM  RN  RO  RP  RQ  RR  RU  RX  RY  Rd  Ri  Rl  Rn  Ro  Rv  R~  R  R  R  R  R  R  R  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR  [  sX   			
				!	+								9			)			)													/	5									t   AttributeTestsc           B   s   e  Z d  Z d   Z RS(   t   TestAttributec         C   s   d d l  m } | S(   Ni˙˙˙˙(   R   (   R
   R   (   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR     s    (   R   R   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s   t   MethodTestsc           B   s_   e  Z d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z RS(
   t
   TestMethodc         C   s   d d l  m } | S(   Ni˙˙˙˙(   R=  (   R
   R=  (   R   R=  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   "  s    c         C   sf   |  j    } |  j | j i   i d d 6| _ |  j | j i d d 6 | ` |  j | j i   d  S(   NR   R4   (   R#   R   RT  (   R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_optional_as_property&  s    c         C   sw   d d l  m } |  j   } y |   Wn< | k
 re } |  j | j d   |  j | j |  j  n X|  j d  d  S(   Ni˙˙˙˙(   t   BrokenImplementations*   __call__ should raise BrokenImplementation(	   RŞ   R  R#   R   R9   R   R!   R   t   fail(   R   R  R  R`  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt)   test___call___raises_BrokenImplementation.  s    c         C   s   |  j    } | j   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d   |  j | d d   d  S(   Nt
   positionalt   requiredRT  t   varargst   kwargs(   R#   t   getSignatureInfoR   R'   R   (   R   R  t   info(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getSignatureInfo_bare9  s    c         C   s&   |  j    } |  j | j   d  d  S(   Ns   ()(   R#   R   t   getSignatureString(   R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_getSignatureString_bareB  s    c         C   s9   |  j    } d g | _ | _ |  j | j   d  d  S(   NR4   s   (foo)(   R#   R  R  R   R   (   R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt'   test_getSignatureString_w_only_requiredF  s    c         C   sI   |  j    } d g | _ | _ i d d 6| _ |  j | j   d  d  S(   NR4   R   s   (foo='bar')(   R#   R  R  RT  R   R   (   R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt"   test_getSignatureString_w_optionalK  s    c         C   s/   |  j    } d | _ |  j | j   d  d  S(   NR   s   (*args)(   R#   R  R   R   (   R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt!   test_getSignatureString_w_varargsQ  s    	c         C   s/   |  j    } d | _ |  j | j   d  d  S(   NR   s   (**kw)(   R#   R  R   R   (   R   R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt    test_getSignatureString_w_kwargsV  s    	(   R   R   R   R   R  R  R  RĄ  R˘  RŁ  R¤  RĽ  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR    s   									t   Test_fromFunctionc           B   sb   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z RS(
   c         O   s   d d l  m } | | |   S(   Ni˙˙˙˙(   R   (   R
   R   (   R   R   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _callFUT^  s    c         C   só   d   } |  j  |  } |  j | j   d  |  j | j   d  |  j | j d   |  j t | j    g   | j   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d   |  j | d d   d  S(	   Nc           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   _funcc  s    R¨  R   R  R  RT  R  R  (	   R§  R   R%   R&   R9   R   R'   R(   R  (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt	   test_bareb  s    	c         C   s[   d d l  m } d | f d     Y} d   } |  j | d | } |  j | j |  d  S(   Ni˙˙˙˙(   R   R   c           B   s   e  Z RS(    (   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   s  s   c           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨  u  s    R9   (   R
   R   R§  R   R9   (   R   R   R   R¨  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_interfaceq  s
    	c         C   s8   d   } |  j  | d d } |  j | j   d  d  S(   Nc           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨  {  s    R!   t   anotherName(   R§  R   R%   (   R   R¨  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_namez  s    	c         C   s   d   } |  j  |  } | j   } |  j t | d  d g  |  j t | d  d g  |  j | d i   |  j | d d   |  j | d d   d  S(   Nc         S   s   d S(   R   N(    (   R4   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨    s    R  R4   R  RT  R  R  (   R§  R  R   R'   R   (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_only_required  s    	c         C   sĽ   d d  } |  j  |  } | j   } |  j t | d  d g  |  j t | d  g   |  j | d i d d 6 |  j | d d   |  j | d d   d  S(	   NR   c         S   s   d S(   R   N(    (   R4   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨    s    R  R4   R  RT  R  R  (   R§  R  R   R'   R   (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_optional  s    c         C   sĄ   d d  } |  j  | d d } | j   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d   |  j | d	 d   d  S(
   NR   c         S   s   d S(   R   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨    s    t   imleveli   R  R  RT  R  R  (   R§  R  R   R'   R   (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_optional_self  s    c         C   s   d   } |  j  |  } | j   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d  |  j | d d   d  S(   Nc          W   s   d S(   R   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨  Š  s    R  R  RT  R  R   R  (   R§  R  R   R'   R   (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_varargs¨  s    	c         C   s   d   } |  j  |  } | j   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d   |  j | d d  d  S(   Nc          [   s   d S(   R   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨  ´  s    R  R  RT  R  R  R   (   R§  R  R   R'   R   (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_kwargsł  s    	c         C   sŤ   d d  } |  j  |  } | j   } |  j t | d  d d g  |  j t | d  d g  |  j | d i d d 6 |  j | d d	  |  j | d
 d  d  S(   NR   c         _   s   d S(   R   N(    (   R4   R   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR¨  ż  s    R  R4   R   R  RT  R  R   R  R   (   R§  R  R   R'   (   R   R¨  R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_full_spectrumž  s     (   R   R   R§  RŠ  RŞ  RŹ  R­  RŽ  R°  Rą  R˛  Rł  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRŚ  \  s   										t   Test_fromMethodc           B   s,   e  Z d    Z d   Z d   Z d   Z RS(   c         O   s   d d l  m } | | |   S(   Ni˙˙˙˙(   t
   fromMethod(   R
   Rľ  (   R   R   R   Rľ  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR§  Ě  s    c         C   s  d t  f d     Y} |  j | j  } |  j | j   d  |  j | j   d  |  j | j d   |  j t | j	    g   | j
   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d   |  j | d	 d   d  S(
   NR   c           B   s   e  Z d    Z RS(   c         S   s   d S(   R   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Ň  s    (   R   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   Ń  s   R   R   R  R  RT  R  R  (   R   R§  R   R   R%   R&   R9   R   R'   R(   R  (   R   R   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_no_argsĐ  s    c         C   s¸   d t  f d     Y} |  j | j  } | j   } |  j t | d  d d g  |  j t | d  d g  |  j | d i d d 6 |  j | d	 d
  |  j | d d  d  S(   NR   c           B   s   e  Z d  d  Z RS(   R   c         _   s   d S(   R   N(    (   R   R4   R   R   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   â  s    (   R   R   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR   á  s   R  R4   R   R  RT  R   R  R   R  R   (   R   R§  R   R  R   R'   (   R   R   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRł  ŕ  s     c         C   só   d   } |  j  |  } |  j | j   d  |  j | j   d  |  j | j d   |  j t | j    g   | j   } |  j t | d  g   |  j t | d  g   |  j | d i   |  j | d d   |  j | d d   d  S(	   Nc           S   s   d S(   R   N(    (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR4   í  s    R4   R   R  R  RT  R  R  (	   R§  R   R%   R&   R9   R   R'   R(   R  (   R   R4   R  R  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   test_w_non_methodě  s    	(   R   R   R§  Rś  Rł  Rˇ  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR´  Ę  s   			Rw   c           B   s   e  Z d    Z d   Z RS(   c         C   s   g  |  _  d  S(   N(   R   (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRö   ý  s    c         C   s   |  j  j |  d  S(   N(   R   Rh   (   R   t   originally_changed(    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR      s    (   R   R   Rö   R   (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRw   ű  s   	c         C   sw   d d l  m } t |  d d   } t |  d d   } | d  k	 rs t | t |   rs | | k ss | d   qs n  d  S(   Ni˙˙˙˙(   Rä   R4   R   s%   Please, Boo MUST be greater than Foo!(   RŞ   Rä   R   R   Ré   t   type(   R;   Rä   R4   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRk    s    !c         C   sH   d d l  m } t |  d d   rD t |  d d   rD | d   n  d  S(   Ni˙˙˙˙(   Rä   R4   R   s   If Foo, then Bar!(   RŞ   Rä   R   R   (   R;   Rä   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRg    s    %R@   c           B   s#   e  Z d    Z d   Z d   Z RS(   c         K   sk   | |  _  t g  | D] } | t | |  f ^ q  |  _ x* | j   D] \ } } t | | |  qG Wd  S(   N(   t   modulet   dictR   t
   to_restoret   itemst   setattr(   R   Rş  R   t   keyR0  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyRö     s    	1c         C   s   |  S(   N(    (   R   (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt	   __enter__  s    c         C   s7   x0 |  j  j   D] \ } } t |  j | |  q Wd  S(   N(   Rź  R˝  Rž  Rş  (   R   t   exc_typet   exc_valt   exc_tbRż  R0  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   __exit__!  s    (   R   R   Rö   RŔ  RÄ  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyR@     s   		c          C   s   d d  l  }  t j t j t  t j t  t j t  t j t  t j t  t j t	  t j t
  t j t  |  j   |  j d  f
  S(   Ni˙˙˙˙s   zope.interface.interface(   t   doctestt   unittestt	   TestSuitet	   makeSuiteR   R7   RR   Rn   R  R  R  RŚ  t   DocTestSuite(   RĹ  (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt
   test_suite&  s    	(   R"   RĆ  R   R    t   TestCaseR    R   R   R7   RR   Rn   R   R  R  R  RŚ  R´  Rw   Rk  Rg  R@   RĘ  (    (    (    sG   /usr/lib/python2.7/dist-packages/zope/interface/tests/test_interface.pyt   <module>   s.   	!$0F=s˙ Ü˙ ˙ ˙ ˝	>n1			