| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/trial/test/ |
Upload File : |
=Nc @ 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 assertEqualt 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