ó
[³XMc           @   sø   d  Z  d d l Z d d l m Z m Z d Z d Z d Z d e f d „  ƒ  YZ	 d	 e f d
 „  ƒ  YZ
 d e f d „  ƒ  YZ d d d „  ƒ  YZ d e j e f d „  ƒ  YZ e j d e ƒ g e _ d e j e f d „  ƒ  YZ e j d e ƒ g Z d S(   se   
Test cases used to make sure that warning supression works at the module,
method, and class levels.
iÿÿÿÿN(   t   unittestt   utils   method warning messages   class warning messages   module warning messaget   MethodWarningc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyR      s   t   ClassWarningc           B   s   e  Z RS(    (   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyR      s   t   ModuleWarningc           B   s   e  Z RS(    (   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyR      s   t	   EmitMixinc           B   s   e  Z d  „  Z RS(   c         C   s4   t  j t t ƒ t  j t t ƒ t  j t t ƒ d  S(   N(   t   warningst   warnt   METHOD_WARNING_MSGR   t   CLASS_WARNING_MSGR   t   MODULE_WARNING_MSGR   (   t   self(    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyt   _emit   s    (   R   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyR      s   t   TestSuppressionc           B   sD   e  Z d  „  Z e j d e ƒ g e _ d „  Z d „  Z g  e _ RS(   c         C   s   |  j  ƒ  d  S(   N(   R   (   R   (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyt   testSuppressMethod%   s    t   messagec         C   s   |  j  ƒ  d  S(   N(   R   (   R   (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyt   testSuppressClass)   s    c         C   s   |  j  ƒ  d  S(   N(   R   (   R   (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyt   testOverrideSuppressClass,   s    (   R   R   R   R   t   suppressR
   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyR   $   s
   			R   t   TestSuppression2c           B   s   e  Z d  „  Z RS(   c         C   s   |  j  ƒ  d  S(   N(   R   (   R   (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyt   testSuppressModule4   s    (   R   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyR   3   s   (    (   t   __doc__R   t   twisted.trialR    R   R
   R   R   t   WarningR   R   R   R   t   TestCaseR   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/trial/test/suppression.pyt   <module>   s   