ó
[³XMc           @   s0   d  Z  d d l m Z d e f d „  ƒ  YZ d S(   s;   
Direct unit tests for L{twisted.trial.unittest.TestCase}.
iÿÿÿÿ(   t   TestCaset   TestCaseTestsc           B   s?   e  Z d  Z d e f d „  ƒ  YZ d „  Z d „  Z d „  Z RS(   s   
    L{TestCase} tests.
    t
   MyTestCasec           B   s   e  Z d  Z d „  Z RS(   s_   
        Some test methods which can be used to test behaviors of
        L{TestCase}.
        c         C   s   d  S(   N(    (   t   self(    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyt   test_1   s    (   t   __name__t
   __module__t   __doc__R   (    (    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyR      s   c         C   s(   |  j  d ƒ |  _ |  j  d ƒ |  _ d S(   s’   
        Create a couple instances of C{MyTestCase}, each for the same test
        method, to be used in the test methods of this class.
        R   N(   R   t   firstt   second(   R   (    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyt   setUp   s    c         C   sO   |  j  |  j |  j k ƒ |  j  |  j |  j k ƒ |  j |  j |  j k ƒ d S(   s   
        In order for one test method to be runnable twice, two TestCase
        instances with the same test method name must not compare as equal.
        N(   t
   assertTrueR   R	   t   assertFalse(   R   (    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyt   test_equality    s    c         C   s:   i  } d | |  j <d | |  j <|  j t | ƒ d ƒ d S(   s¯   
        In order for one test method to be runnable twice, two TestCase
        instances with the same test method name should not have the same
        hash value.
        i   N(   t   NoneR   R	   t   assertEqualst   len(   R   t	   container(    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyt   test_hashability*   s    (   R   R   R   R    R   R
   R   R   (    (    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyR      s
   			
N(   R   t   twisted.trial.unittestR    R   (    (    (    sD   /usr/lib/python2.7/dist-packages/twisted/trial/test/test_testcase.pyt   <module>   s   