| 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 : |
ó
[³XMc @ sÐ d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l
m Z m Z d d l
m Z m Z d d l m Z e d ƒ Z d
e f d „ ƒ YZ d e f d
„ ƒ YZ d S( iÿÿÿÿN( t
implements( t reflect( t Failure( t util( t TestCaset PyUnitResultAdapter( t IReportert ITestCase( t erroneoust unittestt TestPyUnitTestCasec B sZ e Z d e j f d „ ƒ YZ d „ Z d „ Z e j d e d d ƒ g e _ d „ Z
RS( t
PyUnitTestc B s e Z d „ Z RS( c C s d S( N( ( t self( ( sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyt test_pass s ( t __name__t
__module__R
( ( ( sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyR s c C s( | j d ƒ | _ t | j ƒ | _ d S( NR
( R t originalR t test( R ( ( sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyt setUp s c s? g ‰ ‡ f d † } | j j | ƒ | j ˆ | j g ƒ d S( sB
Trial assumes that test cases implement visit().
c s ˆ j | ƒ d S( N( t append( R ( t log( sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyt visitor( s N( R t visitt assertEqual( R R ( ( R sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyt
test_visit# s t categoryt messages' Test visitors deprecated in Twisted 8.0c C s' | j t | j ƒ d | j f ƒ d S( sW
Tests must be callable in order to be used with Python's unittest.py.
s %r is not callable.N( t
assertTruet callableR ( R ( ( sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyt
test_callable1 s ( R R t pyunitR R R R R t suppresst DeprecationWarningR ( ( ( sH /usr/lib/python2.7/dist-packages/twisted/trial/test/test_pyunitcompat.pyR
s
t TestPyUnitResultc B sV e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
RS( s¹
Tests to show that PyUnitResultAdapter wraps TestResult objects from the
standard library 'unittest' module in such a way as to make them usable and
useful from Trial.
c C sV d t f d „ ƒ Y} t j d ƒ } | ƒ } | j | ƒ | j | j d t ƒ d S( sƒ
The L{PyUnitResultAdapter} is only used when the result passed to
C{run} does *not* provide L{IReporter}.
t StubReporterc B s<