ó
ÔËÞKc           @   s.  d  Z  d d l m Z m Z d d l m Z d d l m Z d e f d „  ƒ  YZ d e	 f d „  ƒ  YZ
 d	 e f d
 „  ƒ  YZ e e
 _ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e j ƒ  f d „  ƒ  YZ d e	 f d „  ƒ  YZ d e e f d „  ƒ  YZ d e e f d „  ƒ  YZ d e f d „  ƒ  YZ d e	 f d „  ƒ  YZ e ƒ  Z d e	 f d  „  ƒ  YZ e j Z e d! ƒ Z e d" e g ƒ Z e d# ƒ Z e d$ e e g ƒ Z d% „  Z  d& e f d' „  ƒ  YZ! d( „  Z" d) e! f d* „  ƒ  YZ# d+ e	 f d, „  ƒ  YZ$ d- S(.   sO   Unit Test Fixtures

$Id: unitfixtures.py 110536 2010-04-06 02:59:44Z tseaver $
iÿÿÿÿ(   t	   Interfacet	   invariant(   t	   Attribute(   t   Invalidt   mytestc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR      s   t   Cc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   d S(   s   return 1i   (    (   t   selft   at   b(    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   m1   s    c         C   s   d S(   s   return 2i   (    (   R   R	   R
   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   m2   s    (   R   R   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR      s   	t   ICc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   d S(   s   return 1N(    (   R	   R
   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   &   s    c         C   s   d S(   s   return 2N(    (   R	   R
   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   )   s    (   R   R   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   %   s   	t   I1c           B   s   e  Z d  „  Z RS(   c           C   s   d S(   t   blahN(    (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   ma1   s    (   R   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   0   s   t   I2c           B   s   e  Z RS(    (   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   4   s    t   I3c           B   s   e  Z RS(    (   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   6   s    t   I4c           B   s   e  Z RS(    (   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   8   s    t   Ac           B   s   e  Z e Z RS(    (   R   R   R   t   __implemented__(    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   :   s   t   Bc           B   s   e  Z e e f Z RS(    (   R   R   R   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   =   s   t   Dc           B   s   e  Z RS(    (   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   @   s    t   Ec           B   s   e  Z e j e j f Z RS(    (   R   R   R   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   B   s   t   FooInterfacec           B   sG   e  Z d  Z e d ƒ Z d „  Z d d d
 d „ Z d „  Z d	 „  Z RS(   s     This is an Abstract Base Class s"   fuzzed over beyond all recognitionc         C   s   d S(   s    This is aMethod N(    (   t   foot   bart   bingo(    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   aMethodK   s    i   s   where you get sloshedi   i   c         C   s   d S(   s    This is anotherMethod N(    (   R   R   R   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   anotherMethodN   s    c         G   s   d S(   s    yadda yadda N(    (   t   zipt   argues(    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   wammyQ   s    c          K   s   d S(   s    useless code is fun! N(    (   t   keywords(    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   uselessT   s    (   i   i   (	   R   R   t   __doc__R   t   foobarR   R   R!   R#   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   F   s   		t   Fooc           B   sJ   e  Z d  Z e f Z d Z d „  Z d d d
 d „ Z d „  Z d	 „  Z	 RS(   s    A concrete class t   yeahc         C   s   d S(   s    This is aMethod s   barf!(    (   R   R   R   R   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   ^   s    i   s   where you get sloshedi   i   c         C   s   d S(   s    This is anotherMethod s   barf!(    (   R   R   R   R   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR   b   s    c         G   s   d S(   s    yadda yadda s   barf!(    (   R   R   R    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR!   f   s    c         K   s   d S(   s    useless code is fun! s   barf!(    (   R   R"   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR#   j   s    (   i   i   (
   R   R   R$   R   R   R%   R   R   R!   R#   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR&   W   s   			t   Blahc           B   s   e  Z RS(    (   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR(   p   s   t   FunInterfacet   BarInterfacet   BobInterfacet   BazInterfacec         C   s8   t  |  d d  ƒ r4 t  |  d d  ƒ r4 t d ƒ ‚ n  d  S(   NR   R   s   If Foo, then Bar!(   t   getattrt   NoneR   (   t   obj(    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   ifFooThenBarz   s    %t
   IInvariantc           B   s*   e  Z e d  ƒ Z e d ƒ Z e e ƒ RS(   R   s*   bar; must eval to Boolean True if foo does(   R   R   R   R   R   R   R0   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR1   }   s   c         C   sg   t  |  d d  ƒ } t  |  d d  ƒ } | d  k	 rc t | t | ƒ ƒ rc | | k sc t d ƒ ‚ qc n  d  S(   NR   R   s%   Please, Boo MUST be greater than Foo!(   R-   R.   t
   isinstancet   typeR   (   R/   R   R   (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   BarGreaterThanFoo   s
    !t   ISubInvariantc           B   s   e  Z e e ƒ RS(    (   R   R   R   R4   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR5   ‹   s   t
   InvariantCc           B   s   e  Z RS(    (   R   R   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR6      s   N(%   R$   t   zope.interfaceR    R   t   zope.interface.interfaceR   t   zope.interface.exceptionsR   R   t   objectR   R   R   R   R   R   R   t   deferredR   R   R   R   R   R&   t   foo_instanceR(   t	   __class__t   newR)   R*   R+   R,   R0   R1   R4   R5   R6   (    (    (    sE   /usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt   <module>   s:   						
