K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / python2.7 / dist-packages / twisted / trial / _dist /
server ip : 104.21.89.46

your ip : 172.69.130.146

H O M E


Filename/usr/lib/python2.7/dist-packages/twisted/trial/_dist/managercommands.py
Size1.52 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified17-Sep-2012 16:16
Last accessed07-Jul-2025 07:15
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# 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())]