| 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 @ st d Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d „ Z d e j
f d „ ƒ YZ d S( s*
Tests for the output generated by trial.
iÿÿÿÿN( t trial( t runner( t packagesc G s d d l m } t j ƒ } | j | ƒ t j ƒ } t j | j d | d | d ƒ} t j | ƒ } | j
| ƒ } | j ƒ S( Niÿÿÿÿ( t reportert streamt workingDirectorys temp-directory( t
twisted.trialR R t Optionst parseOptionst StringIOR t TrialRunnert VerboseTextReportert _getSuitet runt getvalue( t argsR t configt outputt myRunnert suitet result( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt runTrial s
t TestImportErrorsc B s¼ e Z d Z e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sb Actually run trial as if on the command line and check that the output
is what we expect.
t _testImportErrorsc G s t d | j ƒ | Œ S( Ns --temp-directory( R t mktemp( t selfR ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyR $ s c C s | GH| S( N( ( R t stuff( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt _print' s c O s# t t | ƒ j | | | | Ž | S( N( t superR t failUnlessIn( R t containert containeeR t kwargs( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyR + s c O s# t t | ƒ j | | | | Ž | S( N( R R t failIfIn( R R R R R ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyR! 1 s c C s | j ƒ d S( N( R ( R ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt
test_trialRun7 s c C s3 | j d ƒ } | j | d ƒ | j | d ƒ | S( Ns twisted.doesntexists [ERROR]( R R ( R t d( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_nonexistentModule: s c C sC | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | S( Nt doesntexistt ModuleNotFounds [ERROR]( R R ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_nonexistentPackage@ s
c C sC | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | S( Ns doesntexist.barneyt ObjectNotFounds [ERROR]( R R ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt! test_nonexistentPackageWithModuleG s
c C sC | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | S( Nt
badpackages [ERROR]t IOError( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_badpackageN s
c C sC | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | S( Ns badpackage.test_modules [ERROR]R+ ( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_moduleInBadpackageU s
c C sS | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( Ns package.test_bad_modules [ERROR]R+ s <module ( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_badmodule\ s c C sS | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( Ns package.test_import_modules [ERROR]R+ s <module ( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_badimportd s c C sc | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( Nt packages [ERROR]t test_bad_modulet test_import_modules <module R+ ( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_recurseImportl s c C ss | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( Nt package2s [ERROR]t test_modules No module named frotzs <module R+ ( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_recurseImportErrorsu s c C sF | j d d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | S( Ns -NR4 s [ERROR]s No module named frotzs <module ( R R R! ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_nonRecurseImportErrors s
c C sS | j d ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( Ns package.test_modules [ERROR]R+ t OKs PASSED (successes=1)( R R! R ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt test_regularRun† s c C sx | j | j ƒ | j t j j | j d d ƒ ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( NR0 s test_module.pys [ERROR]R+ R8 s PASSED (successes=1)( t
mangleSysPatht oldPathR t ost patht joint parentR! R ( R R# ( ( sB /usr/lib/python2.7/dist-packages/twisted/trial/test/test_output.pyt
test_filenameŽ s c C sx | j | j ƒ | j t j j | j d d ƒ ƒ } | j | d ƒ | j | d ƒ | j | d ƒ | j | d ƒ | S( NR0 s test_dos_module.pys [ERROR]R+ R8 s PASSED (successes=1)( R: R; R R<