Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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, Directory : /usr/lib/python2.7/dist-packages/twisted/trial/_dist/ |
Upload File : |
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Commands for reporting test success of failure to the manager. @since: 12.3 """ from twisted.protocols.amp import Command, String, Boolean, ListOf class AddSuccess(Command): """ Add a success. """ arguments = [('testName', String())] response = [('success', Boolean())] class AddError(Command): """ Add an error. """ arguments = [('testName', String()), ('error', String()), ('errorClass', String()), ('frames', ListOf(String()))] response = [('success', Boolean())] class AddFailure(Command): """ Add a failure. """ arguments = [('testName', String()), ('fail', String()), ('failClass', String()), ('frames', ListOf(String()))] response = [('success', Boolean())] class AddSkip(Command): """ Add a skip. """ arguments = [('testName', String()), ('reason', String())] response = [('success', Boolean())] class AddExpectedFailure(Command): """ Add an expected failure. """ arguments = [('testName', String()), ('error', String()), ('todo', String())] response = [('success', Boolean())] class AddUnexpectedSuccess(Command): """ Add an unexpected success. """ arguments = [('testName', String()), ('todo', String())] response = [('success', Boolean())] class TestWrite(Command): """ Write test log. """ arguments = [('out', String())] response = [('success', Boolean())]