ó
[³XMc           @   sS   d  Z  d d l m Z d d l m Z d d l m Z d e j f d     YZ d S(   s%   
Tests for L{twisted.internet.main}.
i˙˙˙˙(   t   unittest(   t   ReactorAlreadyInstalledError(   t   installReactort   InstallReactorTestsc           B   s    e  Z d  Z d   Z d   Z RS(   s%   
    Tests for L{installReactor}
    c         C   s   |  j  t t t    d S(   sv   
        If a reactor is already installed, L{installReactor} raises
        L{ReactorAlreadyInstalledError}.
        N(   t   assertRaisesR   R   t   object(   t   self(    (    sC   /usr/lib/python2.7/dist-packages/twisted/internet/test/test_main.pyt   test_alreadyInstalled   s    c         C   s   |  j  t t t   d S(   so   
        For backwards compatibility, L{ReactorAlreadyInstalledError} is an
        L{AssertionError}.
        N(   t
   assertTruet
   issubclassR   t   AssertionError(   R   (    (    sC   /usr/lib/python2.7/dist-packages/twisted/internet/test/test_main.pyt   test_errorIsAnAssertionError   s    (   t   __name__t
   __module__t   __doc__R   R   (    (    (    sC   /usr/lib/python2.7/dist-packages/twisted/internet/test/test_main.pyR      s   	N(	   R   t   twisted.trialR    t   twisted.internet.errorR   t   twisted.internet.mainR   t   TestCaseR   (    (    (    sC   /usr/lib/python2.7/dist-packages/twisted/internet/test/test_main.pyt   <module>   s   