SYMBOL INDEX (3224 symbols across 57 files) FILE: supervisor/childutils.py function getRPCTransport (line 12) | def getRPCTransport(env): function getRPCInterface (line 17) | def getRPCInterface(env): function get_headers (line 23) | def get_headers(line): function eventdata (line 26) | def eventdata(payload): function get_asctime (line 31) | def get_asctime(now=None): class ProcessCommunicationsProtocol (line 39) | class ProcessCommunicationsProtocol: method send (line 40) | def send(self, msg, fp=sys.stdout): method stdout (line 46) | def stdout(self, msg): method stderr (line 49) | def stderr(self, msg): class EventListenerProtocol (line 54) | class EventListenerProtocol: method wait (line 55) | def wait(self, stdin=sys.stdin, stdout=sys.stdout): method ready (line 62) | def ready(self, stdout=sys.stdout): method ok (line 66) | def ok(self, stdout=sys.stdout): method fail (line 69) | def fail(self, stdout=sys.stdout): method send (line 72) | def send(self, data, stdout=sys.stdout): FILE: supervisor/compat.py function as_bytes (line 14) | def as_bytes(s, encoding='utf-8'): function as_string (line 20) | def as_string(s, encoding='utf-8'): function is_text_stream (line 26) | def is_text_stream(stream): class unicode (line 46) | class unicode(str): method __init__ (line 47) | def __init__(self, string, encoding, errors): function as_bytes (line 50) | def as_bytes(s, encoding='utf8'): function as_string (line 56) | def as_string(s, encoding='utf8'): function is_text_stream (line 62) | def is_text_stream(stream): function import_spec (line 189) | def import_spec(spec): function import_spec (line 195) | def import_spec(spec): function resource_filename (line 208) | def resource_filename(package, path): function resource_filename (line 213) | def resource_filename(package, path): FILE: supervisor/confecho.py function main (line 6) | def main(out=sys.stdout): FILE: supervisor/datatypes.py function process_or_group_name (line 13) | def process_or_group_name(name): function integer (line 22) | def integer(value): function boolean (line 31) | def boolean(s): function list_of_strings (line 41) | def list_of_strings(arg): function list_of_ints (line 49) | def list_of_ints(arg): function list_of_exitcodes (line 58) | def list_of_exitcodes(arg): function dict_of_key_value_pairs (line 68) | def dict_of_key_value_pairs(arg): class Automatic (line 94) | class Automatic: class Syslog (line 97) | class Syslog: function logfile_name (line 105) | def logfile_name(val): class RangeCheckedConversion (line 120) | class RangeCheckedConversion: method __init__ (line 123) | def __init__(self, conversion, min=None, max=None): method __call__ (line 128) | def __call__(self, value): function inet_address (line 140) | def inet_address(s): class SocketAddress (line 158) | class SocketAddress: method __init__ (line 159) | def __init__(self, s): class SocketConfig (line 168) | class SocketConfig: method __repr__ (line 175) | def __repr__(self): method __str__ (line 180) | def __str__(self): method __eq__ (line 183) | def __eq__(self, other): method __ne__ (line 192) | def __ne__(self, other): method get_backlog (line 195) | def get_backlog(self): method addr (line 198) | def addr(self): # pragma: no cover method create_and_bind (line 201) | def create_and_bind(self): # pragma: no cover class InetStreamSocketConfig (line 204) | class InetStreamSocketConfig(SocketConfig): method __init__ (line 210) | def __init__(self, host, port, **kwargs): method addr (line 216) | def addr(self): method create_and_bind (line 219) | def create_and_bind(self): class UnixStreamSocketConfig (line 229) | class UnixStreamSocketConfig(SocketConfig): method __init__ (line 237) | def __init__(self, path, **kwargs): method addr (line 244) | def addr(self): method create_and_bind (line 247) | def create_and_bind(self): method get_mode (line 262) | def get_mode(self): method get_owner (line 265) | def get_owner(self): method _chmod (line 268) | def _chmod(self): method _chown (line 276) | def _chown(self): function colon_separated_user_group (line 284) | def colon_separated_user_group(arg): function name_to_uid (line 301) | def name_to_uid(name): function name_to_gid (line 320) | def name_to_gid(name): function gid_for_uid (line 339) | def gid_for_uid(uid): function octal_type (line 343) | def octal_type(arg): function existing_directory (line 349) | def existing_directory(v): function existing_dirpath (line 355) | def existing_dirpath(v): function logging_level (line 366) | def logging_level(value): class SuffixMultiplier (line 373) | class SuffixMultiplier: method __init__ (line 377) | def __init__(self, d, default=1): method __call__ (line 388) | def __call__(self, v): function url (line 399) | def url(value): function signal_number (line 408) | def signal_number(value): class RestartWhenExitUnexpected (line 422) | class RestartWhenExitUnexpected: class RestartUnconditionally (line 425) | class RestartUnconditionally: function auto_restart (line 428) | def auto_restart(value): function profile_options (line 442) | def profile_options(value): FILE: supervisor/dispatchers.py class PDispatcher (line 14) | class PDispatcher: method __init__ (line 20) | def __init__(self, process, channel, fd): method __repr__ (line 26) | def __repr__(self): method readable (line 32) | def readable(self): method writable (line 35) | def writable(self): method handle_read_event (line 38) | def handle_read_event(self): method handle_write_event (line 41) | def handle_write_event(self): method handle_error (line 44) | def handle_error(self): method close (line 57) | def close(self): method flush (line 63) | def flush(self): class POutputDispatcher (line 66) | class POutputDispatcher(PDispatcher): method __init__ (line 84) | def __init__(self, process, event_type, fd): method _init_normallog (line 112) | def _init_normallog(self): method _init_capturelog (line 144) | def _init_capturelog(self): method removelogs (line 160) | def removelogs(self): method reopenlogs (line 167) | def reopenlogs(self): method _log (line 173) | def _log(self, data): method record_output (line 205) | def record_output(self): method toggle_capturemode (line 241) | def toggle_capturemode(self): method writable (line 265) | def writable(self): method readable (line 268) | def readable(self): method handle_read_event (line 273) | def handle_read_event(self): class PEventListenerDispatcher (line 283) | class PEventListenerDispatcher(PDispatcher): method __init__ (line 294) | def __init__(self, process, channel, fd): method removelogs (line 318) | def removelogs(self): method reopenlogs (line 324) | def reopenlogs(self): method writable (line 330) | def writable(self): method readable (line 333) | def readable(self): method handle_read_event (line 338) | def handle_read_event(self): method handle_listener_state_change (line 358) | def handle_listener_state_change(self): method handle_result (line 445) | def handle_result(self, result): method _change_listener_state (line 463) | def _change_listener_state(self, new_state): class PInputDispatcher (line 482) | class PInputDispatcher(PDispatcher): method __init__ (line 485) | def __init__(self, process, channel, fd): method writable (line 489) | def writable(self): method readable (line 494) | def readable(self): method flush (line 497) | def flush(self): method handle_write_event (line 503) | def handle_write_event(self): function stripEscapes (line 518) | def stripEscapes(s): class RejectEvent (line 540) | class RejectEvent(Exception): function default_handler (line 544) | def default_handler(event, response): FILE: supervisor/events.py function subscribe (line 6) | def subscribe(type, callback): function unsubscribe (line 9) | def unsubscribe(type, callback): function notify (line 12) | def notify(event): function clear (line 17) | def clear(): class Event (line 20) | class Event: class ProcessLogEvent (line 24) | class ProcessLogEvent(Event): method __init__ (line 27) | def __init__(self, process, pid, data): method payload (line 32) | def payload(self): class ProcessLogStdoutEvent (line 49) | class ProcessLogStdoutEvent(ProcessLogEvent): class ProcessLogStderrEvent (line 52) | class ProcessLogStderrEvent(ProcessLogEvent): class ProcessCommunicationEvent (line 55) | class ProcessCommunicationEvent(Event): method __init__ (line 61) | def __init__(self, process, pid, data): method payload (line 66) | def payload(self): class ProcessCommunicationStdoutEvent (line 80) | class ProcessCommunicationStdoutEvent(ProcessCommunicationEvent): class ProcessCommunicationStderrEvent (line 83) | class ProcessCommunicationStderrEvent(ProcessCommunicationEvent): class RemoteCommunicationEvent (line 86) | class RemoteCommunicationEvent(Event): method __init__ (line 87) | def __init__(self, type, data): method payload (line 91) | def payload(self): class SupervisorStateChangeEvent (line 94) | class SupervisorStateChangeEvent(Event): method payload (line 96) | def payload(self): class SupervisorRunningEvent (line 99) | class SupervisorRunningEvent(SupervisorStateChangeEvent): class SupervisorStoppingEvent (line 102) | class SupervisorStoppingEvent(SupervisorStateChangeEvent): class EventRejectedEvent (line 105) | class EventRejectedEvent: # purposely does not subclass Event method __init__ (line 106) | def __init__(self, process, event): class ProcessStateEvent (line 110) | class ProcessStateEvent(Event): method __init__ (line 114) | def __init__(self, process, from_state, expected=True): method payload (line 122) | def payload(self): method get_extra_values (line 132) | def get_extra_values(self): class ProcessStateFatalEvent (line 135) | class ProcessStateFatalEvent(ProcessStateEvent): class ProcessStateUnknownEvent (line 138) | class ProcessStateUnknownEvent(ProcessStateEvent): class ProcessStateStartingOrBackoffEvent (line 141) | class ProcessStateStartingOrBackoffEvent(ProcessStateEvent): method get_extra_values (line 142) | def get_extra_values(self): class ProcessStateBackoffEvent (line 145) | class ProcessStateBackoffEvent(ProcessStateStartingOrBackoffEvent): class ProcessStateStartingEvent (line 148) | class ProcessStateStartingEvent(ProcessStateStartingOrBackoffEvent): class ProcessStateExitedEvent (line 151) | class ProcessStateExitedEvent(ProcessStateEvent): method get_extra_values (line 152) | def get_extra_values(self): class ProcessStateRunningEvent (line 155) | class ProcessStateRunningEvent(ProcessStateEvent): method get_extra_values (line 156) | def get_extra_values(self): class ProcessStateStoppingEvent (line 159) | class ProcessStateStoppingEvent(ProcessStateEvent): method get_extra_values (line 160) | def get_extra_values(self): class ProcessStateStoppedEvent (line 163) | class ProcessStateStoppedEvent(ProcessStateEvent): method get_extra_values (line 164) | def get_extra_values(self): class ProcessGroupEvent (line 167) | class ProcessGroupEvent(Event): method __init__ (line 168) | def __init__(self, group): method payload (line 171) | def payload(self): class ProcessGroupAddedEvent (line 174) | class ProcessGroupAddedEvent(ProcessGroupEvent): class ProcessGroupRemovedEvent (line 177) | class ProcessGroupRemovedEvent(ProcessGroupEvent): class TickEvent (line 180) | class TickEvent(Event): method __init__ (line 182) | def __init__(self, when, supervisord): method payload (line 186) | def payload(self): class Tick5Event (line 189) | class Tick5Event(TickEvent): class Tick60Event (line 192) | class Tick60Event(TickEvent): class Tick3600Event (line 195) | class Tick3600Event(TickEvent): class EventTypes (line 200) | class EventTypes: function getEventNameByType (line 229) | def getEventNameByType(requested): function register (line 234) | def register(name, event): FILE: supervisor/http.py class NOT_DONE_YET (line 28) | class NOT_DONE_YET: class deferring_chunked_producer (line 31) | class deferring_chunked_producer: method __init__ (line 41) | def __init__ (self, producer, footers=None): method more (line 46) | def more (self): class deferring_composite_producer (line 63) | class deferring_composite_producer: method __init__ (line 65) | def __init__ (self, producers): method more (line 69) | def more (self): class deferring_globbing_producer (line 83) | class deferring_globbing_producer: method __init__ (line 90) | def __init__ (self, producer, buffer_size=1<<16): method more (line 96) | def more (self): class deferring_hooked_producer (line 113) | class deferring_hooked_producer: method __init__ (line 120) | def __init__ (self, producer, function): method more (line 126) | def more (self): class deferring_http_request (line 141) | class deferring_http_request(http_server.http_request): method done (line 147) | def done(self, *arg, **kw): method log (line 230) | def log (self, bytes): method cgi_environment (line 250) | def cgi_environment(self): method get_server_url (line 303) | def get_server_url(self): class deferring_http_channel (line 332) | class deferring_http_channel(http_server.http_channel): method writable (line 341) | def writable(self, now=None): method refill_buffer (line 356) | def refill_buffer (self): method found_terminator (line 388) | def found_terminator (self): class supervisor_http_server (line 468) | class supervisor_http_server(http_server.http_server): method prebind (line 472) | def prebind(self, sock, logger_object): method postbind (line 491) | def postbind(self): method log_info (line 515) | def log_info(self, message, type='info'): class supervisor_af_inet_http_server (line 521) | class supervisor_af_inet_http_server(supervisor_http_server): method __init__ (line 524) | def __init__(self, ip, port, logger_object): class supervisor_af_unix_http_server (line 551) | class supervisor_af_unix_http_server(supervisor_http_server): method __init__ (line 554) | def __init__(self, socketname, sockchmod, sockchown, logger_object): method checkused (line 625) | def checkused(self, socketname): class tail_f_producer (line 637) | class tail_f_producer: method __init__ (line 638) | def __init__(self, request, filename, head): method __del__ (line 648) | def __del__(self): method more (line 651) | def more(self): method _open (line 669) | def _open(self): method _close (line 674) | def _close(self): method _follow (line 677) | def _follow(self): method _fsize (line 688) | def _fsize(self): class logtail_handler (line 691) | class logtail_handler: method __init__ (line 695) | def __init__(self, supervisord): method match (line 698) | def match(self, request): method handle_request (line 701) | def handle_request(self, request): class mainlogtail_handler (line 760) | class mainlogtail_handler: method __init__ (line 764) | def __init__(self, supervisord): method match (line 767) | def match(self, request): method handle_request (line 770) | def handle_request(self, request): function make_http_servers (line 794) | def make_http_servers(options, supervisord): class LogWrapper (line 867) | class LogWrapper: method __init__ (line 870) | def __init__(self, logger): method log (line 873) | def log(self, msg): class encrypted_dictionary_authorizer (line 884) | class encrypted_dictionary_authorizer: method __init__ (line 885) | def __init__ (self, dict): method authorize (line 888) | def authorize(self, auth_info): class supervisor_auth_handler (line 900) | class supervisor_auth_handler(auth_handler): method __init__ (line 901) | def __init__(self, dict, handler, realm='default'): FILE: supervisor/http_client.py class Listener (line 17) | class Listener(object): method status (line 19) | def status(self, url, status): method error (line 22) | def error(self, url, error): method response_header (line 25) | def response_header(self, url, name, value): method done (line 28) | def done(self, url): method feed (line 31) | def feed(self, url, data): method close (line 52) | def close(self, url): class HTTPHandler (line 55) | class HTTPHandler(asynchat.async_chat): method __init__ (line 56) | def __init__( method get (line 81) | def get(self, serverurl, path=''): method close (line 109) | def close(self): method header (line 116) | def header(self, name, value): method handle_error (line 120) | def handle_error(self): method handle_connect (line 134) | def handle_connect(self): method feed (line 153) | def feed(self, data): method collect_incoming_data (line 156) | def collect_incoming_data(self, bytes): method found_terminator (line 162) | def found_terminator(self): method ignore (line 166) | def ignore(self): method status_line (line 169) | def status_line(self): method headers (line 188) | def headers(self): method response_header (line 207) | def response_header(self, name, value): method body (line 210) | def body(self): method done (line 214) | def done(self): method chunked_size (line 217) | def chunked_size(self): method chunked_body (line 229) | def chunked_body(self): method trailer (line 235) | def trailer(self): FILE: supervisor/loggers.py class LevelsByName (line 21) | class LevelsByName: class LevelsByDescription (line 30) | class LevelsByDescription: function _levelNumbers (line 39) | def _levelNumbers(): function getLevelNumByDescription (line 48) | def getLevelNumByDescription(description): class Handler (line 52) | class Handler: method __init__ (line 56) | def __init__(self, stream=None): method setFormat (line 60) | def setFormat(self, fmt): method setLevel (line 63) | def setLevel(self, level): method flush (line 66) | def flush(self): method close (line 74) | def close(self): method emit (line 89) | def emit(self, record): method handleError (line 113) | def handleError(self): class StreamHandler (line 118) | class StreamHandler(Handler): method __init__ (line 119) | def __init__(self, strm=None): method remove (line 122) | def remove(self): method reopen (line 126) | def reopen(self): class BoundIO (line 129) | class BoundIO: method __init__ (line 130) | def __init__(self, maxbytes, buf=b''): method flush (line 134) | def flush(self): method close (line 137) | def close(self): method write (line 140) | def write(self, b): method getvalue (line 146) | def getvalue(self): method clear (line 149) | def clear(self): class FileHandler (line 152) | class FileHandler(Handler): method __init__ (line 156) | def __init__(self, filename, mode='ab'): method reopen (line 175) | def reopen(self): method remove (line 180) | def remove(self): class RotatingFileHandler (line 188) | class RotatingFileHandler(FileHandler): method __init__ (line 189) | def __init__(self, filename, mode='ab', maxBytes=512*1024*1024, method emit (line 219) | def emit(self, record): method _remove (line 229) | def _remove(self, fn): # pragma: no cover method _rename (line 233) | def _rename(self, src, tgt): # pragma: no cover method _exists (line 237) | def _exists(self, fn): # pragma: no cover method removeAndRename (line 241) | def removeAndRename(self, sfn, dfn): method doRollover (line 257) | def doRollover(self): class LogRecord (line 278) | class LogRecord: method __init__ (line 279) | def __init__(self, level, msg, **kw): method asdict (line 285) | def asdict(self): class Logger (line 299) | class Logger: method __init__ (line 300) | def __init__(self, level=None, handlers=None): method close (line 309) | def close(self): method blather (line 313) | def blather(self, msg, **kw): method trace (line 317) | def trace(self, msg, **kw): method debug (line 321) | def debug(self, msg, **kw): method info (line 325) | def info(self, msg, **kw): method warn (line 329) | def warn(self, msg, **kw): method error (line 333) | def error(self, msg, **kw): method critical (line 337) | def critical(self, msg, **kw): method log (line 341) | def log(self, level, msg, **kw): method addHandler (line 347) | def addHandler(self, hdlr): method getvalue (line 350) | def getvalue(self): class SyslogHandler (line 353) | class SyslogHandler(Handler): method __init__ (line 354) | def __init__(self): method close (line 358) | def close(self): method reopen (line 361) | def reopen(self): method _syslog (line 364) | def _syslog(self, msg): # pragma: no cover method emit (line 368) | def emit(self, record): function getLogger (line 382) | def getLogger(level=None): function handle_boundIO (line 387) | def handle_boundIO(logger, fmt, maxbytes=_2MB): function handle_stdout (line 396) | def handle_stdout(logger, fmt): function handle_syslog (line 403) | def handle_syslog(logger, fmt): function handle_file (line 410) | def handle_file(logger, filename, fmt, rotating=False, maxbytes=0, backu... FILE: supervisor/medusa/asynchat_25.py class async_chat (line 54) | class async_chat (asyncore.dispatcher): method __init__ (line 63) | def __init__ (self, conn=None, map=None): method collect_incoming_data (line 69) | def collect_incoming_data(self, data): method found_terminator (line 72) | def found_terminator(self): method set_terminator (line 75) | def set_terminator (self, term): method get_terminator (line 79) | def get_terminator (self): method handle_read (line 87) | def handle_read (self): method handle_write (line 152) | def handle_write (self): method handle_close (line 155) | def handle_close (self): method push (line 158) | def push (self, data): method push_with_producer (line 163) | def push_with_producer (self, producer): method readable (line 167) | def readable (self): method writable (line 171) | def writable (self): method close_when_done (line 181) | def close_when_done (self): method refill_buffer (line 187) | def refill_buffer (self): method initiate_send (line 211) | def initiate_send (self): method discard_buffers (line 228) | def discard_buffers (self): class simple_producer (line 236) | class simple_producer: method __init__ (line 238) | def __init__ (self, data, buffer_size=512): method more (line 242) | def more (self): class fifo (line 252) | class fifo: method __init__ (line 253) | def __init__ (self, list=None): method __len__ (line 259) | def __len__ (self): method is_empty (line 262) | def is_empty (self): method first (line 265) | def first (self): method push (line 268) | def push (self, data): method pop (line 271) | def pop (self): function find_prefix_at_end (line 292) | def find_prefix_at_end (haystack, needle): FILE: supervisor/medusa/asyncore_25.py class ExitNow (line 65) | class ExitNow(Exception): function read (line 68) | def read(obj): function write (line 76) | def write(obj): function _exception (line 84) | def _exception (obj): function readwrite (line 92) | def readwrite(obj, flags): function poll (line 105) | def poll(timeout=0.0, map=None): function poll2 (line 148) | def poll2(timeout=0.0, map=None): function loop (line 182) | def loop(timeout=30.0, use_poll=False, map=None, count=None): class dispatcher (line 200) | class dispatcher: method __init__ (line 208) | def __init__(self, sock=None, map=None): method __repr__ (line 229) | def __repr__(self): method add_channel (line 242) | def add_channel(self, map=None): method del_channel (line 248) | def del_channel(self, map=None): method create_socket (line 257) | def create_socket(self, family, type): method set_socket (line 264) | def set_socket(self, sock, map=None): method set_reuse_addr (line 270) | def set_reuse_addr(self): method readable (line 287) | def readable(self): method writable (line 290) | def writable(self): method listen (line 297) | def listen(self, num): method bind (line 303) | def bind(self, addr): method connect (line 307) | def connect(self, address): method accept (line 320) | def accept(self): method send (line 331) | def send(self, data): method recv (line 341) | def recv(self, buffer_size): method close (line 359) | def close(self): method __getattr__ (line 374) | def __getattr__(self, attr): method log (line 381) | def log(self, message): method log_info (line 384) | def log_info(self, message, type='info'): method handle_read_event (line 388) | def handle_read_event(self): method handle_write_event (line 402) | def handle_write_event(self): method handle_expt_event (line 409) | def handle_expt_event(self): method handle_error (line 412) | def handle_error(self): method handle_expt (line 432) | def handle_expt(self): method handle_read (line 435) | def handle_read(self): method handle_write (line 438) | def handle_write(self): method handle_connect (line 441) | def handle_connect(self): method handle_accept (line 444) | def handle_accept(self): method handle_close (line 447) | def handle_close(self): class dispatcher_with_send (line 456) | class dispatcher_with_send(dispatcher): method __init__ (line 458) | def __init__(self, sock=None, map=None): method initiate_send (line 462) | def initiate_send(self): method handle_write (line 466) | def handle_write(self): method writable (line 469) | def writable(self): method send (line 472) | def send(self, data): function compact_traceback (line 482) | def compact_traceback(): function close_all (line 501) | def close_all(map=None): class file_wrapper (line 524) | class file_wrapper: method __init__ (line 528) | def __init__(self, fd): method recv (line 531) | def recv(self, buffersize): method send (line 534) | def send(self, s): method close (line 540) | def close(self): method fileno (line 543) | def fileno(self): class file_dispatcher (line 546) | class file_dispatcher(dispatcher): method __init__ (line 548) | def __init__(self, fd, map=None): method set_file (line 557) | def set_file(self, fd): FILE: supervisor/medusa/auth_handler.py class auth_handler (line 34) | class auth_handler: method __init__ (line 35) | def __init__ (self, dict, handler, realm='default'): method match (line 42) | def match (self, request): method handle_request (line 46) | def handle_request (self, request): method handle_unauthorized (line 82) | def handle_unauthorized (self, request): method make_nonce (line 91) | def make_nonce (self, request): method apply_hash (line 101) | def apply_hash (self, s): method status (line 109) | def status (self): class dictionary_authorizer (line 124) | class dictionary_authorizer: method __init__ (line 125) | def __init__ (self, dict): method authorize (line 128) | def authorize (self, auth_info): FILE: supervisor/medusa/counter.py class counter (line 17) | class counter: method __init__ (line 20) | def __init__ (self, initial_value=0): method increment (line 23) | def increment (self, delta=1): method decrement (line 31) | def decrement (self, delta=1): method as_long (line 39) | def as_long (self): method __nonzero__ (line 42) | def __nonzero__ (self): method __repr__ (line 47) | def __repr__ (self): method __str__ (line 50) | def __str__ (self): FILE: supervisor/medusa/default_handler.py class default_handler (line 39) | class default_handler: method __init__ (line 53) | def __init__ (self, filesystem): method __repr__ (line 64) | def __repr__ (self): method match (line 72) | def match (self, request): method handle_request (line 77) | def handle_request (self, request): method set_content_type (line 171) | def set_content_type (self, path, request): method status (line 180) | def status (self): function get_extension (line 208) | def get_extension (path): FILE: supervisor/medusa/filesys.py class abstract_filesystem (line 19) | class abstract_filesystem: method __init__ (line 20) | def __init__ (self): method current_directory (line 23) | def current_directory (self): method listdir (line 27) | def listdir (self, path, long=0): method open (line 34) | def open (self, path, mode): method stat (line 38) | def stat (self, path): method isdir (line 42) | def isdir (self, path): method isfile (line 46) | def isfile (self, path): method cwd (line 50) | def cwd (self, path): method cdup (line 54) | def cdup (self): method longify (line 59) | def longify (self, path): function safe_stat (line 78) | def safe_stat (path): class os_filesystem (line 84) | class os_filesystem: method __init__ (line 91) | def __init__ (self, root, wd='/'): method current_directory (line 95) | def current_directory (self): method isfile (line 98) | def isfile (self, path): method isdir (line 102) | def isdir (self, path): method cwd (line 106) | def cwd (self, path): method cdup (line 128) | def cdup (self): method listdir (line 131) | def listdir (self, path, long=0): method stat (line 149) | def stat (self, path): method open (line 153) | def open (self, path, mode): method unlink (line 157) | def unlink (self, path): method mkdir (line 161) | def mkdir (self, path): method rmdir (line 165) | def rmdir (self, path): method rename (line 169) | def rename(self, src, dst): method normalize (line 173) | def normalize (self, path): method translate (line 182) | def translate (self, path): method longify (line 192) | def longify (self, path_stat_info_tuple): method __repr__ (line 196) | def __repr__ (self): class unix_filesystem (line 204) | class unix_filesystem (os_filesystem): class schizophrenic_unix_filesystem (line 207) | class schizophrenic_unix_filesystem (os_filesystem): method __init__ (line 213) | def __init__ (self, root, wd='/', persona=(None, None)): method become_persona (line 217) | def become_persona (self): method become_nobody (line 224) | def become_nobody (self): method cwd (line 230) | def cwd (self, path): method cdup (line 237) | def cdup (self): method open (line 244) | def open (self, filename, mode): method listdir (line 251) | def listdir (self, path, long=0): class msdos_filesystem (line 262) | class msdos_filesystem (os_filesystem): method longify (line 263) | def longify (self, path_stat_info_tuple): class merged_filesystem (line 275) | class merged_filesystem: method __init__ (line 276) | def __init__ (self, *fsys): function msdos_longify (line 282) | def msdos_longify (file, stat_info): function msdos_date (line 295) | def msdos_date (t): function unix_longify (line 332) | def unix_longify (file, stat_info): function ls_date (line 359) | def ls_date (now, t): class list_producer (line 383) | class list_producer: method __init__ (line 384) | def __init__ (self, list, func=None): method more (line 389) | def more (self): FILE: supervisor/medusa/http_date.py function concat (line 6) | def concat (*args): function join (line 9) | def join (seq, field=' '): function group (line 12) | def group (s): function unpack_rfc822 (line 55) | def unpack_rfc822(m): function unpack_rfc850 (line 88) | def unpack_rfc850(m): function build_http_date (line 106) | def build_http_date (when): function parse_http_date (line 109) | def parse_http_date (d): FILE: supervisor/medusa/http_server.py class http_request (line 38) | class http_request: method __init__ (line 57) | def __init__ (self, *args): method __setitem__ (line 80) | def __setitem__ (self, key, value): method __getitem__ (line 83) | def __getitem__ (self, key): method __contains__ (line 86) | def __contains__(self, key): method has_key (line 89) | def has_key (self, key): method build_reply_header (line 92) | def build_reply_header (self): method add_header (line 109) | def add_header(self, name, value): method clear_headers (line 113) | def clear_headers(self): method remove_header (line 121) | def remove_header(self, name, value=None): method get_reply_headers (line 161) | def get_reply_headers(self): method get_reply_header_text (line 185) | def get_reply_header_text(self): method split_uri (line 211) | def split_uri (self): method get_header_with_regex (line 220) | def get_header_with_regex (self, head_reg, group): method get_header (line 227) | def get_header (self, header): method collect_incoming_data (line 247) | def collect_incoming_data (self, data): method found_terminator (line 256) | def found_terminator (self): method push (line 265) | def push (self, thing): method response (line 274) | def response (self, code=200): method error (line 279) | def error (self, code): method done (line 296) | def done (self): method log_date_string (line 372) | def log_date_string (self, when): method log (line 392) | def log (self, bytes): method log_info (line 458) | def log_info(self, msg, level): class http_channel (line 466) | class http_channel (asynchat.async_chat): method __init__ (line 474) | def __init__ (self, server, conn, addr): method __repr__ (line 486) | def __repr__ (self): method check_maintenance (line 497) | def check_maintenance (self): method maintenance (line 501) | def maintenance (self): method kill_zombies (line 507) | def kill_zombies (self): method send (line 520) | def send (self, data): method recv (line 526) | def recv (self, buffer_size): method handle_error (line 541) | def handle_error (self): method log (line 548) | def log (self, *args): method collect_incoming_data (line 555) | def collect_incoming_data (self, data): method found_terminator (line 563) | def found_terminator (self): method writable_for_proxy (line 634) | def writable_for_proxy (self): class http_server (line 654) | class http_server (asyncore.dispatcher): method __init__ (line 660) | def __init__ (self, ip, port, resolver=None, logger_object=None): method writable (line 714) | def writable (self): method handle_read (line 717) | def handle_read (self): method readable (line 720) | def readable (self): method handle_connect (line 723) | def handle_connect (self): method handle_accept (line 726) | def handle_accept (self): method install_handler (line 747) | def install_handler (self, handler, back=0): method remove_handler (line 753) | def remove_handler (self, handler): method status (line 756) | def status (self): function maybe_status (line 785) | def maybe_status (thing): function join_headers (line 795) | def join_headers (headers): function get_header (line 804) | def get_header (head_reg, lines, group=1): function get_header_match (line 811) | def get_header_match (head_reg, lines): function crack_request (line 820) | def crack_request (r): function profile_loop (line 856) | def profile_loop (): FILE: supervisor/medusa/logger.py class file_logger (line 30) | class file_logger: method __init__ (line 33) | def __init__ (self, file, flush=1, mode='a'): method __repr__ (line 44) | def __repr__ (self): method write (line 47) | def write (self, data): method writeline (line 51) | def writeline (self, line): method writelines (line 55) | def writelines (self, lines): method maybe_flush (line 59) | def maybe_flush (self): method flush (line 63) | def flush (self): method softspace (line 66) | def softspace (self, *args): method log (line 69) | def log (self, message): class rotating_file_logger (line 81) | class rotating_file_logger (file_logger): method __init__ (line 86) | def __init__ (self, file, freq=None, maxsize=None, flush=1, mode='a'): method __repr__ (line 94) | def __repr__ (self): method next_backup (line 98) | def next_backup (self, freq): method maybe_flush (line 109) | def maybe_flush (self): # rotate first if necessary method maybe_rotate (line 114) | def maybe_rotate (self): method rotate (line 125) | def rotate (self): class socket_logger (line 142) | class socket_logger (asynchat.async_chat): method __init__ (line 144) | def __init__ (self, address): method __repr__ (line 154) | def __repr__ (self): method log (line 157) | def log (self, message): class multi_logger (line 164) | class multi_logger: method __init__ (line 165) | def __init__ (self, loggers): method __repr__ (line 168) | def __repr__ (self): method log (line 171) | def log (self, message): class resolving_logger (line 175) | class resolving_logger: method __init__ (line 180) | def __init__ (self, resolver, logger): class logger_thunk (line 184) | class logger_thunk: method __init__ (line 185) | def __init__ (self, message, logger): method __call__ (line 189) | def __call__ (self, host, ttl, answer): method log (line 194) | def log (self, ip, message): class unresolving_logger (line 203) | class unresolving_logger: method __init__ (line 205) | def __init__ (self, logger): method log (line 208) | def log (self, ip, message): function strip_eol (line 212) | def strip_eol (line): class tail_logger (line 217) | class tail_logger: method __init__ (line 219) | def __init__ (self, logger, size=500): method log (line 224) | def log (self, message): FILE: supervisor/medusa/producers.py class simple_producer (line 17) | class simple_producer: method __init__ (line 19) | def __init__ (self, data, buffer_size=1024): method more (line 23) | def more (self): class scanning_producer (line 33) | class scanning_producer: method __init__ (line 35) | def __init__ (self, data, buffer_size=1024): method more (line 40) | def more (self): class lines_producer (line 53) | class lines_producer: method __init__ (line 56) | def __init__ (self, lines): method more (line 59) | def more (self): class buffer_list_producer (line 67) | class buffer_list_producer: method __init__ (line 72) | def __init__ (self, buffers): method more (line 76) | def more (self): class file_producer (line 84) | class file_producer: method __init__ (line 90) | def __init__ (self, file): method more (line 94) | def more (self): class output_producer (line 114) | class output_producer: method __init__ (line 116) | def __init__ (self): method write (line 119) | def write (self, data): method writeline (line 124) | def writeline (self, line): method writelines (line 127) | def writelines (self, lines): method flush (line 130) | def flush (self): method softspace (line 133) | def softspace (self, *args): method more (line 136) | def more (self): class composite_producer (line 144) | class composite_producer: method __init__ (line 146) | def __init__ (self, producers): method more (line 149) | def more (self): class globbing_producer (line 161) | class globbing_producer: method __init__ (line 168) | def __init__ (self, producer, buffer_size=1<<16): method more (line 173) | def more (self): class hooked_producer (line 185) | class hooked_producer: method __init__ (line 192) | def __init__ (self, producer, function): method more (line 197) | def more (self): class chunked_producer (line 217) | class chunked_producer: method __init__ (line 227) | def __init__ (self, producer, footers=None): method more (line 231) | def more (self): class compressed_producer (line 251) | class compressed_producer: method __init__ (line 264) | def __init__ (self, producer, level=5): method more (line 268) | def more (self): class escaping_producer (line 283) | class escaping_producer: method __init__ (line 288) | def __init__ (self, producer, esc_from='\r\n.', esc_to='\r\n..'): method more (line 295) | def more (self): FILE: supervisor/medusa/util.py function html_repr (line 3) | def html_repr (object): function progressive_divide (line 16) | def progressive_divide (n, parts): function split_by_units (line 25) | def split_by_units (n, units, dividers, format_string): function english_bytes (line 37) | def english_bytes (n): function english_time (line 45) | def english_time (n): FILE: supervisor/medusa/xmlrpc_handler.py class xmlrpc_handler (line 20) | class xmlrpc_handler: method match (line 22) | def match (self, request): method handle_request (line 29) | def handle_request (self, request): method continue_request (line 35) | def continue_request (self, data, request): method call (line 59) | def call (self, method, params): class collector (line 63) | class collector: method __init__ (line 67) | def __init__ (self, handler, request): method collect_incoming_data (line 83) | def collect_incoming_data (self, data): method found_terminator (line 86) | def found_terminator (self): class rpc_demo (line 95) | class rpc_demo (xmlrpc_handler): method call (line 97) | def call (self, method, params): FILE: supervisor/options.py function _read_version_txt (line 58) | def _read_version_txt(): function normalize_path (line 65) | def normalize_path(v): class Dummy (line 68) | class Dummy: class Options (line 71) | class Options: method __init__ (line 89) | def __init__(self, require_configfile=True): method default_configfile (line 122) | def default_configfile(self): method help (line 135) | def help(self, dummy): method usage (line 146) | def usage(self, msg): method add (line 152) | def add(self, method _set (line 236) | def _set(self, attr, value, prio): method realize (line 242) | def realize(self, args=None, doc=None, progname=None): method process_config (line 312) | def process_config(self, do_usage=True): method process_config_file (line 343) | def process_config_file(self, do_usage): method exists (line 357) | def exists(self, path): method open (line 360) | def open(self, fn, mode='r'): method get_plugins (line 363) | def get_plugins(self, parser, factory_key, section_prefix): method import_spec (line 389) | def import_spec(self, spec): class ServerOptions (line 394) | class ServerOptions(Options): method __init__ (line 409) | def __init__(self): method version (line 457) | def version(self, dummy): method getLogger (line 464) | def getLogger(self, *args, **kwargs): method default_configfile (line 467) | def default_configfile(self): method realize (line 479) | def realize(self, *arg, **kw): method process_config (line 541) | def process_config(self, do_usage=True): method read_config (line 547) | def read_config(self, fp): method process_groups_from_parser (line 674) | def process_groups_from_parser(self, parser): method parse_fcgi_socket (line 843) | def parse_fcgi_socket(self, sock, proc_uid, socket_owner, socket_mode, method processes_from_section (line 878) | def processes_from_section(self, parser, section, group_name, method _processes_from_section (line 888) | def _processes_from_section(self, parser, section, group_name, method _parse_servernames (line 1060) | def _parse_servernames(self, parser, stype): method _parse_username_and_password (line 1072) | def _parse_username_and_password(self, parser, section): method server_configs_from_parser (line 1084) | def server_configs_from_parser(self, parser): method daemonize (line 1137) | def daemonize(self): method _daemonize (line 1142) | def _daemonize(self): method write_pidfile (line 1194) | def write_pidfile(self): method cleanup (line 1205) | def cleanup(self): method _try_unlink (line 1215) | def _try_unlink(self, path): method close_httpservers (line 1221) | def close_httpservers(self): method close_logger (line 1244) | def close_logger(self): method setsignals (line 1247) | def setsignals(self): method get_signal (line 1256) | def get_signal(self): method openhttpservers (line 1259) | def openhttpservers(self, supervisord): method get_autochildlog_name (line 1280) | def get_autochildlog_name(self, name, identifier, channel): method clear_autochildlogdir (line 1288) | def clear_autochildlogdir(self): method get_socket_map (line 1306) | def get_socket_map(self): method cleanup_fds (line 1309) | def cleanup_fds(self): method kill (line 1314) | def kill(self, pid, signal): method waitpid (line 1317) | def waitpid(self): method drop_privileges (line 1341) | def drop_privileges(self, user): method set_uid_or_exit (line 1398) | def set_uid_or_exit(self): method set_rlimits_or_exit (line 1417) | def set_rlimits_or_exit(self): method make_logger (line 1477) | def make_logger(self): method make_http_servers (line 1498) | def make_http_servers(self, supervisord): method close_fd (line 1502) | def close_fd(self, fd): method fork (line 1508) | def fork(self): method dup2 (line 1511) | def dup2(self, frm, to): method setpgrp (line 1514) | def setpgrp(self): method stat (line 1517) | def stat(self, filename): method write (line 1520) | def write(self, fd, data): method execve (line 1523) | def execve(self, filename, argv, env): method mktempfile (line 1526) | def mktempfile(self, suffix, prefix, dir): method remove (line 1535) | def remove(self, path): method _exit (line 1538) | def _exit(self, code): method setumask (line 1541) | def setumask(self, mask): method get_path (line 1544) | def get_path(self): method get_pid (line 1553) | def get_pid(self): method check_execv_args (line 1556) | def check_execv_args(self, filename, argv, st): method reopenlogs (line 1569) | def reopenlogs(self): method readfd (line 1575) | def readfd(self, fd): method chdir (line 1584) | def chdir(self, dir): method make_pipes (line 1587) | def make_pipes(self, stderr=True): method close_parent_pipes (line 1618) | def close_parent_pipes(self, pipes): method close_child_pipes (line 1624) | def close_child_pipes(self, pipes): class ClientOptions (line 1630) | class ClientOptions(Options): method __init__ (line 1640) | def __init__(self): method realize (line 1666) | def realize(self, *arg, **kw): method read_config (line 1671) | def read_config(self, fp): method getServerProxy (line 1728) | def getServerProxy(self): class UnhosedConfigParser (line 1741) | class UnhosedConfigParser(ConfigParser.RawConfigParser): method __init__ (line 1744) | def __init__(self, *args, **kwargs): method read_string (line 1760) | def read_string(self, string, source=''): method read (line 1769) | def read(self, filenames, **kwargs): method saneget (line 1790) | def saneget(self, section, option, default=_marker, do_expand=True, method getdefault (line 1809) | def getdefault(self, option, default=_marker, expansions={}, **kwargs): method expand_here (line 1813) | def expand_here(self, here): class Config (line 1823) | class Config(object): method __ne__ (line 1824) | def __ne__(self, other): method __lt__ (line 1827) | def __lt__(self, other): method __le__ (line 1833) | def __le__(self, other): method __gt__ (line 1839) | def __gt__(self, other): method __ge__ (line 1845) | def __ge__(self, other): method __repr__ (line 1851) | def __repr__(self): class ProcessConfig (line 1855) | class ProcessConfig(Config): method __init__ (line 1869) | def __init__(self, options, **params): method __eq__ (line 1876) | def __eq__(self, other): method get_path (line 1888) | def get_path(self): method create_autochildlogs (line 1897) | def create_autochildlogs(self): method make_process (line 1907) | def make_process(self, group=None): method make_dispatchers (line 1913) | def make_dispatchers(self, proc): class EventListenerConfig (line 1931) | class EventListenerConfig(ProcessConfig): method make_dispatchers (line 1932) | def make_dispatchers(self, proc): class FastCGIProcessConfig (line 1953) | class FastCGIProcessConfig(ProcessConfig): method make_process (line 1955) | def make_process(self, group=None): method make_dispatchers (line 1963) | def make_dispatchers(self, proc): class ProcessGroupConfig (line 1973) | class ProcessGroupConfig(Config): method __init__ (line 1974) | def __init__(self, options, name, priority, process_configs): method __eq__ (line 1980) | def __eq__(self, other): method after_setuid (line 1993) | def after_setuid(self): method make_group (line 1997) | def make_group(self): class EventListenerPoolConfig (line 2001) | class EventListenerPoolConfig(Config): method __init__ (line 2002) | def __init__(self, options, name, priority, process_configs, buffer_size, method __eq__ (line 2012) | def __eq__(self, other): method after_setuid (line 2026) | def after_setuid(self): method make_group (line 2030) | def make_group(self): class FastCGIGroupConfig (line 2034) | class FastCGIGroupConfig(ProcessGroupConfig): method __init__ (line 2035) | def __init__(self, options, name, priority, process_configs, socket_co... method __eq__ (line 2045) | def __eq__(self, other): method make_group (line 2054) | def make_group(self): function readFile (line 2058) | def readFile(filename, offset, length): function tailFile (line 2092) | def tailFile(filename, offset, length): function decode_wait_status (line 2133) | def decode_wait_status(sts): function signame (line 2161) | def signame(sig): function _init_signames (line 2172) | def _init_signames(): class SignalReceiver (line 2183) | class SignalReceiver: method __init__ (line 2184) | def __init__(self): method receive (line 2187) | def receive(self, sig, frame): method get_signal (line 2191) | def get_signal(self): function expand (line 2200) | def expand(s, expansions, name): function make_namespec (line 2216) | def make_namespec(group_name, process_name): function split_namespec (line 2226) | def split_namespec(namespec): class ProcessException (line 2240) | class ProcessException(Exception): class BadCommand (line 2243) | class BadCommand(ProcessException): class NotExecutable (line 2246) | class NotExecutable(ProcessException): class NotFound (line 2250) | class NotFound(ProcessException): class NoPermission (line 2254) | class NoPermission(ProcessException): FILE: supervisor/pidproxy.py class PidProxy (line 17) | class PidProxy: method __init__ (line 20) | def __init__(self, args): method go (line 29) | def go(self): method usage (line 41) | def usage(self): method setsignals (line 44) | def setsignals(self): method reap (line 53) | def reap(self, sig, frame): method passtochild (line 57) | def passtochild(self, sig, frame): function main (line 68) | def main(): FILE: supervisor/poller.py class BasePoller (line 4) | class BasePoller: method __init__ (line 6) | def __init__(self, options): method initialize (line 10) | def initialize(self): method register_readable (line 13) | def register_readable(self, fd): method register_writable (line 16) | def register_writable(self, fd): method unregister_readable (line 19) | def unregister_readable(self, fd): method unregister_writable (line 22) | def unregister_writable(self, fd): method poll (line 25) | def poll(self, timeout): method before_daemonize (line 28) | def before_daemonize(self): method after_daemonize (line 31) | def after_daemonize(self): method close (line 34) | def close(self): class SelectPoller (line 38) | class SelectPoller(BasePoller): method initialize (line 40) | def initialize(self): method register_readable (line 44) | def register_readable(self, fd): method register_writable (line 47) | def register_writable(self, fd): method unregister_readable (line 50) | def unregister_readable(self, fd): method unregister_writable (line 53) | def unregister_writable(self, fd): method unregister_all (line 56) | def unregister_all(self): method poll (line 59) | def poll(self, timeout): method _init_fdsets (line 77) | def _init_fdsets(self): class PollPoller (line 81) | class PollPoller(BasePoller): method initialize (line 83) | def initialize(self): method register_readable (line 90) | def register_readable(self, fd): method register_writable (line 94) | def register_writable(self, fd): method unregister_readable (line 98) | def unregister_readable(self, fd): method unregister_writable (line 104) | def unregister_writable(self, fd): method poll (line 110) | def poll(self, timeout): method _poll_fds (line 122) | def _poll_fds(self, timeout): method _ignore_invalid (line 131) | def _ignore_invalid(self, fd, eventmask): class KQueuePoller (line 143) | class KQueuePoller(BasePoller): method initialize (line 150) | def initialize(self): method register_readable (line 155) | def register_readable(self, fd): method register_writable (line 161) | def register_writable(self, fd): method unregister_readable (line 167) | def unregister_readable(self, fd): method unregister_writable (line 173) | def unregister_writable(self, fd): method _kqueue_control (line 179) | def _kqueue_control(self, fd, kevent): method poll (line 189) | def poll(self, timeout): method before_daemonize (line 208) | def before_daemonize(self): method after_daemonize (line 211) | def after_daemonize(self): method close (line 218) | def close(self): function implements_poll (line 222) | def implements_poll(): function implements_kqueue (line 225) | def implements_kqueue(): FILE: supervisor/process.py class Subprocess (line 34) | class Subprocess(object): method __init__ (line 59) | def __init__(self, config): method removelogs (line 69) | def removelogs(self): method reopenlogs (line 74) | def reopenlogs(self): method drain (line 79) | def drain(self): method write (line 90) | def write(self, chars): method get_execv_args (line 105) | def get_execv_args(self): method change_state (line 162) | def change_state(self, new_state, expected=True): method _assertInState (line 179) | def _assertInState(self, *states): method record_spawnerr (line 187) | def record_spawnerr(self, msg): method spawn (line 191) | def spawn(self): method _spawn_as_parent (line 264) | def _spawn_as_parent(self, pid): method _prepare_child_fds (line 275) | def _prepare_child_fds(self): method _spawn_as_child (line 286) | def _spawn_as_child(self, filename, argv): method _check_and_adjust_for_system_clock_rollback (line 357) | def _check_and_adjust_for_system_clock_rollback(self, test_time): method stop (line 379) | def stop(self): method stop_report (line 385) | def stop_report(self): method give_up (line 397) | def give_up(self): method kill (line 404) | def kill(self, sig): method signal (line 489) | def signal(self, sig): method finish (line 536) | def finish(self, pid, sts): method set_uid (line 629) | def set_uid(self): method __lt__ (line 635) | def __lt__(self, other): method __eq__ (line 638) | def __eq__(self, other): method __repr__ (line 642) | def __repr__(self): method get_state (line 653) | def get_state(self): method transition (line 656) | def transition(self): class FastCGISubprocess (line 720) | class FastCGISubprocess(Subprocess): method __init__ (line 723) | def __init__(self, config): method before_spawn (line 727) | def before_spawn(self): method spawn (line 738) | def spawn(self): method after_finish (line 749) | def after_finish(self): method finish (line 756) | def finish(self, pid, sts): method _prepare_child_fds (line 764) | def _prepare_child_fds(self): class ProcessGroupBase (line 782) | class ProcessGroupBase(object): method __init__ (line 783) | def __init__(self, config): method __lt__ (line 790) | def __lt__(self, other): method __eq__ (line 793) | def __eq__(self, other): method __repr__ (line 796) | def __repr__(self): method removelogs (line 805) | def removelogs(self): method reopenlogs (line 809) | def reopenlogs(self): method stop_all (line 813) | def stop_all(self): method get_unstopped_processes (line 830) | def get_unstopped_processes(self): method get_dispatchers (line 835) | def get_dispatchers(self): method before_remove (line 841) | def before_remove(self): class ProcessGroup (line 844) | class ProcessGroup(ProcessGroupBase): method transition (line 845) | def transition(self): class FastCGIProcessGroup (line 849) | class FastCGIProcessGroup(ProcessGroup): method __init__ (line 851) | def __init__(self, config, **kwargs): class EventListenerPool (line 866) | class EventListenerPool(ProcessGroupBase): method __init__ (line 867) | def __init__(self, config): method handle_rejected (line 875) | def handle_rejected(self, event): method transition (line 882) | def transition(self): method before_remove (line 905) | def before_remove(self): method dispatch (line 908) | def dispatch(self): method _acceptEvent (line 920) | def _acceptEvent(self, event, head=False): method _dispatchEvent (line 949) | def _dispatchEvent(self, event): method _eventEnvelope (line 983) | def _eventEnvelope(self, event_type, serial, pool_serial, payload): method _subscribe (line 1000) | def _subscribe(self): method _unsubscribe (line 1005) | def _unsubscribe(self): class GlobalSerial (line 1011) | class GlobalSerial(object): method __init__ (line 1012) | def __init__(self): function new_serial (line 1017) | def new_serial(inst): FILE: supervisor/rpcinterface.py class SupervisorNamespaceRPCInterface (line 49) | class SupervisorNamespaceRPCInterface: method __init__ (line 50) | def __init__(self, supervisord): method _update (line 53) | def _update(self, text): method getAPIVersion (line 61) | def getAPIVersion(self): method getSupervisorVersion (line 71) | def getSupervisorVersion(self): method getIdentification (line 79) | def getIdentification(self): method getState (line 87) | def getState(self): method getPID (line 102) | def getPID(self): method readLog (line 110) | def readLog(self, offset, length): method clearLog (line 132) | def clearLog(self): method shutdown (line 155) | def shutdown(self): method restart (line 164) | def restart(self): method reloadConfig (line 174) | def reloadConfig(self): method addProcessGroup (line 203) | def addProcessGroup(self, name): method removeProcessGroup (line 219) | def removeProcessGroup(self, name): method _getAllProcesses (line 234) | def _getAllProcesses(self, lexical=False): method _getGroupAndProcess (line 261) | def _getGroupAndProcess(self, name): method startProcess (line 278) | def startProcess(self, name, wait=True): method startProcessGroup (line 356) | def startProcessGroup(self, name, wait=True): method startAllProcesses (line 381) | def startAllProcesses(self, wait=True): method stopProcess (line 397) | def stopProcess(self, name, wait=True): method stopProcessGroup (line 448) | def stopProcessGroup(self, name, wait=True): method stopAllProcesses (line 473) | def stopAllProcesses(self, wait=True): method signalProcess (line 490) | def signalProcess(self, name, signal): method signalProcessGroup (line 521) | def signalProcessGroup(self, name, signal): method signalAllProcesses (line 546) | def signalAllProcesses(self, signal): method getAllConfigInfo (line 559) | def getAllConfigInfo(self): method _interpretProcessInfo (line 617) | def _interpretProcessInfo(self, info): method getProcessInfo (line 648) | def getProcessInfo(self, name): method _now (line 694) | def _now(self): # pragma: no cover method getAllProcessInfo (line 698) | def getAllProcessInfo(self): method _readProcessLog (line 713) | def _readProcessLog(self, name, offset, length, channel): method readProcessStdoutLog (line 730) | def readProcessStdoutLog(self, name, offset, length): method readProcessStderrLog (line 743) | def readProcessStderrLog(self, name, offset, length): method _tailProcessLog (line 754) | def _tailProcessLog(self, name, offset, length, channel): method tailProcessStdoutLog (line 767) | def tailProcessStdoutLog(self, name, offset, length): method tailProcessStderrLog (line 791) | def tailProcessStderrLog(self, name, offset, length): method clearProcessLogs (line 813) | def clearProcessLogs(self, name): method clearAllProcessLogs (line 837) | def clearAllProcessLogs(self): method sendProcessStdin (line 882) | def sendProcessStdin(self, name, chars): method sendRemoteCommEvent (line 920) | def sendRemoteCommEvent(self, type, data): function _total_seconds (line 939) | def _total_seconds(timedelta): function make_allfunc (line 943) | def make_allfunc(processes, predicate, func, **extra_kwargs): function isRunning (line 1033) | def isRunning(process): function isNotRunning (line 1036) | def isNotRunning(process): function isSignallable (line 1039) | def isSignallable(process): function make_main_rpcinterface (line 1044) | def make_main_rpcinterface(supervisord): FILE: supervisor/socket_manager.py class Proxy (line 3) | class Proxy: method __init__ (line 8) | def __init__(self, object, **kwargs): method __del__ (line 12) | def __del__(self): method __getattr__ (line 16) | def __getattr__(self, name): method _get (line 19) | def _get(self): class ReferenceCounter (line 22) | class ReferenceCounter: method __init__ (line 26) | def __init__(self, **kwargs): method get_count (line 31) | def get_count(self): method increment (line 34) | def increment(self): method decrement (line 39) | def decrement(self): class SocketManager (line 46) | class SocketManager: method __init__ (line 53) | def __init__(self, socket_config, **kwargs): method __repr__ (line 62) | def __repr__(self): method config (line 67) | def config(self): method is_prepared (line 70) | def is_prepared(self): method get_socket (line 73) | def get_socket(self): method get_socket_ref_count (line 78) | def get_socket_ref_count(self): method _require_prepared (line 82) | def _require_prepared(self): method _prepare_socket (line 86) | def _prepare_socket(self): method _close (line 97) | def _close(self): FILE: supervisor/states.py class ProcessStates (line 4) | class ProcessStates: function getProcessStateDescription (line 27) | def getProcessStateDescription(code): class SupervisorStates (line 31) | class SupervisorStates: function getSupervisorStateDescription (line 37) | def getSupervisorStateDescription(code): class EventListenerStates (line 41) | class EventListenerStates: function getEventListenerStateDescription (line 47) | def getEventListenerStateDescription(code): function _names_by_code (line 52) | def _names_by_code(states): FILE: supervisor/supervisorctl.py class LSBInitExitStatuses (line 47) | class LSBInitExitStatuses: class LSBStatusExitStatuses (line 56) | class LSBStatusExitStatuses: class fgthread (line 64) | class fgthread(threading.Thread): method __init__ (line 70) | def __init__(self, program, ctl): method start (line 83) | def start(self): # pragma: no cover method run (line 89) | def run(self): # pragma: no cover method __run (line 96) | def __run(self): # pragma: no cover method globaltrace (line 102) | def globaltrace(self, frame, why, arg): method localtrace (line 108) | def localtrace(self, frame, why, arg): method kill (line 114) | def kill(self): class Controller (line 119) | class Controller(cmd.Cmd): method __init__ (line 121) | def __init__(self, options, completekey='tab', stdin=None, method emptyline (line 138) | def emptyline(self): method default (line 142) | def default(self, line): method exec_cmdloop (line 146) | def exec_cmdloop(self, args, options): method set_exitstatus_from_xmlrpc_fault (line 178) | def set_exitstatus_from_xmlrpc_fault(self, faultcode, ignored_faultcod... method onecmd (line 186) | def onecmd(self, line): method _get_do_func (line 231) | def _get_do_func(self, cmd): method output (line 241) | def output(self, message): method get_supervisor (line 246) | def get_supervisor(self): method get_server_proxy (line 249) | def get_server_proxy(self, namespace=None): method upcheck (line 256) | def upcheck(self): method complete (line 293) | def complete(self, text, state, line=None): method _complete_actions (line 326) | def _complete_actions(self, text): method _complete_groups (line 330) | def _complete_groups(self, text): method _complete_processes (line 338) | def _complete_processes(self, text): method _get_complete_info (line 350) | def _get_complete_info(self): method do_help (line 358) | def do_help(self, arg): method help_help (line 365) | def help_help(self): method do_EOF (line 369) | def do_EOF(self, arg): method help_EOF (line 373) | def help_EOF(self): function get_names (line 376) | def get_names(inst): class ControllerPluginBase (line 386) | class ControllerPluginBase: method __init__ (line 389) | def __init__(self, controller): method _doc_header (line 392) | def _doc_header(self): method do_help (line 396) | def do_help(self, arg): function not_all_langs (line 439) | def not_all_langs(): function check_encoding (line 443) | def check_encoding(ctl): class DefaultControllerPlugin (line 450) | class DefaultControllerPlugin(ControllerPluginBase): method _tailf (line 453) | def _tailf(self, path): method do_tail (line 480) | def do_tail(self, arg): method help_tail (line 563) | def help_tail(self): method do_maintail (line 573) | def do_maintail(self, arg): method help_maintail (line 624) | def help_maintail(self): method do_quit (line 632) | def do_quit(self, arg): method help_quit (line 635) | def help_quit(self): method help_exit (line 640) | def help_exit(self): method _show_statuses (line 643) | def _show_statuses(self, process_infos): method do_status (line 657) | def do_status(self, arg): method help_status (line 700) | def help_status(self): method do_pid (line 708) | def do_pid(self, arg): method help_pid (line 735) | def help_pid(self): method _startresult (line 742) | def _startresult(self, result): method do_start (line 763) | def do_start(self, arg): method help_start (line 812) | def help_start(self): method _signalresult (line 819) | def _signalresult(self, result, success='signalled'): method _stopresult (line 837) | def _stopresult(self, result): method do_stop (line 840) | def do_stop(self, arg): method help_stop (line 889) | def help_stop(self): method do_signal (line 895) | def do_signal(self, arg): method help_signal (line 949) | def help_signal(self): method do_restart (line 955) | def do_restart(self, arg): method help_restart (line 970) | def help_restart(self): method do_shutdown (line 979) | def do_shutdown(self, arg): method help_shutdown (line 1016) | def help_shutdown(self): method do_reload (line 1019) | def do_reload(self, arg): method help_reload (line 1045) | def help_reload(self): method _formatChanges (line 1048) | def _formatChanges(self, added_changed_dropped_tuple): method _formatConfigInfo (line 1064) | def _formatConfigInfo(self, configinfo): method do_avail (line 1081) | def do_avail(self, arg): method help_avail (line 1101) | def help_avail(self): method do_reread (line 1104) | def do_reread(self, arg): method help_reread (line 1125) | def help_reread(self): method do_add (line 1128) | def do_add(self, arg): method help_add (line 1150) | def help_add(self): method do_remove (line 1154) | def do_remove(self, arg): method help_remove (line 1173) | def help_remove(self): method do_update (line 1177) | def do_update(self, arg): method help_update (line 1245) | def help_update(self): method _clearresult (line 1250) | def _clearresult(self, result): method do_clear (line 1262) | def do_clear(self, arg): method help_clear (line 1297) | def help_clear(self): method do_open (line 1303) | def do_open(self, arg): method help_open (line 1316) | def help_open(self): method do_version (line 1320) | def do_version(self, arg): method help_version (line 1332) | def help_version(self): method do_fg (line 1337) | def do_fg(self, arg): method help_fg (line 1403) | def help_fg(self,args=None): function main (line 1408) | def main(args=None, options=None): FILE: supervisor/supervisord.py class Supervisor (line 48) | class Supervisor: method __init__ (line 54) | def __init__(self, options): method main (line 59) | def main(self): method run (line 80) | def run(self): method diff_to_active (line 98) | def diff_to_active(self): method add_process_group (line 113) | def add_process_group(self, config): method remove_process_group (line 122) | def remove_process_group(self, name): method get_process_map (line 130) | def get_process_map(self): method shutdown_report (line 136) | def shutdown_report(self): method ordered_stop_groups_phase_1 (line 156) | def ordered_stop_groups_phase_1(self): method ordered_stop_groups_phase_2 (line 161) | def ordered_stop_groups_phase_2(self): method runforever (line 174) | def runforever(self): method tick (line 274) | def tick(self, now=None): method reap (line 291) | def reap(self, once=False, recursionguard=0): method handle_signal (line 308) | def handle_signal(self): method get_state (line 336) | def get_state(self): function timeslice (line 339) | def timeslice(period, when): function profile (line 343) | def profile(cmd, globals, locals, sort_order, callers): # pragma: no cover function main (line 366) | def main(args=None, test=False): function go (line 386) | def go(options): # pragma: no cover FILE: supervisor/templating.py function encode (line 58) | def encode(text, encoding): function encode (line 61) | def encode(text, encoding): function Replace (line 67) | def Replace(text, structure=False): class PyHelper (line 73) | class PyHelper: method findmeld (line 74) | def findmeld(self, node, name, default=None): method clone (line 82) | def clone(self, node, parent=None): method _bfclone (line 95) | def _bfclone(self, nodes, parent): method bfclone (line 108) | def bfclone(self, node, parent=None): method getiterator (line 120) | def getiterator(self, node, tag=None): method content (line 130) | def content(self, node, text, structure=False): class doctype (line 152) | class doctype: class _MeldElementInterface (line 163) | class _MeldElementInterface: method __init__ (line 171) | def __init__(self, tag, attrib): method __repr__ (line 176) | def __repr__(self): method __len__ (line 179) | def __len__(self): method __getitem__ (line 182) | def __getitem__(self, index): method __getslice__ (line 185) | def __getslice__(self, start, stop): method getchildren (line 188) | def getchildren(self): method find (line 191) | def find(self, path): method findtext (line 194) | def findtext(self, path, default=None): method findall (line 197) | def findall(self, path): method clear (line 200) | def clear(self): method get (line 205) | def get(self, key, default=None): method set (line 208) | def set(self, key, value): method keys (line 211) | def keys(self): method items (line 214) | def items(self): method getiterator (line 217) | def getiterator(self, *ignored_args, **ignored_kw): method __setitem__ (line 224) | def __setitem__(self, index, element): method __setslice__ (line 234) | def __setslice__(self, start, stop, elements): method append (line 239) | def append(self, element): method insert (line 243) | def insert(self, index, element): method __delitem__ (line 247) | def __delitem__(self, index): method __delslice__ (line 258) | def __delslice__(self, start, stop): method remove (line 264) | def remove(self, element): method makeelement (line 268) | def makeelement(self, tag, attrib): method __mod__ (line 273) | def __mod__(self, other): method fillmelds (line 279) | def fillmelds(self, **kw): method fillmeldhtmlform (line 295) | def fillmeldhtmlform(self, **kw): method findmeld (line 439) | def findmeld(self, name, default=None): method findmelds (line 450) | def findmelds(self): method findwithattrib (line 455) | def findwithattrib(self, attrib, value=None): method repeat (line 473) | def repeat(self, iterable, childname=None): method replace (line 505) | def replace(self, text, structure=False): method content (line 520) | def content(self, text, structure=False): method attributes (line 527) | def attributes(self, **kw): method write_xmlstring (line 538) | def write_xmlstring(self, encoding=None, doctype=None, fragment=False, method write_xml (line 550) | def write_xml(self, file, encoding=None, doctype=None, method write_htmlstring (line 574) | def write_htmlstring(self, encoding=None, doctype=doctype.html, method write_html (line 587) | def write_html(self, file, encoding=None, doctype=doctype.html, method write_xhtmlstring (line 612) | def write_xhtmlstring(self, encoding=None, doctype=doctype.xhtml, method write_xhtml (line 624) | def write_xhtml(self, file, encoding=None, doctype=doctype.xhtml, method clone (line 647) | def clone(self, parent=None): method deparent (line 653) | def deparent(self): method parentindex (line 661) | def parentindex(self): method shortrepr (line 667) | def shortrepr(self, encoding=None): method diffmeld (line 672) | def diffmeld(self, other): method meldid (line 716) | def meldid(self): method lineage (line 719) | def lineage(self): class MeldTreeBuilder (line 727) | class MeldTreeBuilder(TreeBuilder): method __init__ (line 728) | def __init__(self): method start (line 732) | def start(self, tag, attrs): method comment (line 743) | def comment(self, data): method doctype (line 748) | def doctype(self, name, pubid, system): class HTMLXMLParser (line 751) | class HTMLXMLParser(HTMLParser): method __init__ (line 756) | def __init__(self, builder=None, encoding=None): method close (line 771) | def close(self): method handle_starttag (line 776) | def handle_starttag(self, tag, attrs): method handle_endtag (line 814) | def handle_endtag(self, tag): method handle_charref (line 822) | def handle_charref(self, char): method handle_entityref (line 829) | def handle_entityref(self, name): method handle_data (line 840) | def handle_data(self, data): method unknown_entityref (line 845) | def unknown_entityref(self, name): method handle_comment (line 848) | def handle_comment(self, data): function do_parse (line 853) | def do_parse(source, parser): function parse_xml (line 861) | def parse_xml(source): function parse_html (line 869) | def parse_html(source, encoding=None): function parse_xmlstring (line 874) | def parse_xmlstring(text): function parse_htmlstring (line 878) | def parse_htmlstring(text, encoding=None): function _both_case (line 885) | def _both_case(mapping): function _write_html (line 905) | def _write_html(write, node, encoding, namespaces, depth=-1, maxdepth=No... function _write_xml (line 1005) | def _write_xml(write, node, encoding, namespaces, pipeline, xhtml=False): function _encode_attrib (line 1074) | def _encode_attrib(k, v, encoding): function _escape_cdata (line 1088) | def _escape_cdata(text, encoding=None): function _escape_attrib (line 1104) | def _escape_attrib(text, encoding): function _write_declaration (line 1124) | def _write_declaration(write, encoding): function _write_doctype (line 1138) | def _write_doctype(write, doctype): function insert_doctype (line 1154) | def insert_doctype(data, doctype=doctype.xhtml): function insert_meld_ns_decl (line 1168) | def insert_meld_ns_decl(data): function prefeed (line 1178) | def prefeed(data, doctype=doctype.xhtml): function sharedlineage (line 1185) | def sharedlineage(srcelement, tgtelement): function diffreduce (line 1198) | def diffreduce(elements): function intersection (line 1212) | def intersection(S1, S2): function melditerator (line 1219) | def melditerator(element, meldid=None, _MELD_ID=_MELD_ID): function _encode (line 1257) | def _encode(s, encoding): function _raise_serialization_error (line 1263) | def _raise_serialization_error(text): function _encode_entity (line 1269) | def _encode_entity(text): function fixtag (line 1291) | def fixtag(tag, namespaces): FILE: supervisor/tests/base.py class DummyOptions (line 23) | class DummyOptions: method __init__ (line 35) | def __init__(self): method getLogger (line 93) | def getLogger(self, *args, **kw): method realize (line 99) | def realize(self, args, **kw): method process_config (line 103) | def process_config(self, do_usage=True): method cleanup_fds (line 106) | def cleanup_fds(self): method set_rlimits_or_exit (line 109) | def set_rlimits_or_exit(self): method set_uid_or_exit (line 113) | def set_uid_or_exit(self): method openhttpservers (line 117) | def openhttpservers(self, supervisord): method daemonize (line 120) | def daemonize(self): method setsignals (line 123) | def setsignals(self): method get_signal (line 126) | def get_signal(self): method get_socket_map (line 129) | def get_socket_map(self): method make_logger (line 132) | def make_logger(self): method clear_autochildlogdir (line 135) | def clear_autochildlogdir(self): method get_autochildlog_name (line 138) | def get_autochildlog_name(self, *ignored): method cleanup (line 141) | def cleanup(self): method write_pidfile (line 144) | def write_pidfile(self): method waitpid (line 147) | def waitpid(self): method kill (line 150) | def kill(self, pid, sig): method stat (line 155) | def stat(self, filename): method get_path (line 159) | def get_path(self): method get_pid (line 162) | def get_pid(self): method check_execv_args (line 166) | def check_execv_args(self, filename, argv, st): method make_pipes (line 171) | def make_pipes(self, stderr=True): method write (line 181) | def write(self, fd, chars): method fork (line 191) | def fork(self): method close_fd (line 196) | def close_fd(self, fd): method close_parent_pipes (line 199) | def close_parent_pipes(self, pipes): method close_child_pipes (line 202) | def close_child_pipes(self, pipes): method setpgrp (line 205) | def setpgrp(self): method dup2 (line 208) | def dup2(self, frm, to): method _exit (line 211) | def _exit(self, code): method execve (line 214) | def execve(self, filename, argv, environment): method drop_privileges (line 221) | def drop_privileges(self, uid): method readfd (line 226) | def readfd(self, fd): method reopenlogs (line 229) | def reopenlogs(self): method mktempfile (line 232) | def mktempfile(self, prefix, suffix, dir): method remove (line 235) | def remove(self, path): method exists (line 240) | def exists(self, path): method open (line 245) | def open(self, name, mode='r'): method chdir (line 250) | def chdir(self, dir): method setumask (line 255) | def setumask(self, mask): class DummyLogger (line 258) | class DummyLogger: method __init__ (line 261) | def __init__(self): method info (line 267) | def info(self, msg, **kw): method log (line 273) | def log(self, level, msg, **kw): method addHandler (line 278) | def addHandler(self, handler): method reopen (line 281) | def reopen(self): method close (line 283) | def close(self): method remove (line 285) | def remove(self): method flush (line 287) | def flush(self): method getvalue (line 289) | def getvalue(self): class DummySupervisor (line 292) | class DummySupervisor: method __init__ (line 293) | def __init__(self, options=None, state=None, process_groups=None): method get_state (line 308) | def get_state(self): class DummySocket (line 311) | class DummySocket: method __init__ (line 318) | def __init__(self, fd): method fileno (line 321) | def fileno(self): method bind (line 324) | def bind(self, addr): method listen (line 328) | def listen(self, backlog): method close (line 332) | def close(self): method __str__ (line 335) | def __str__(self): class DummySocketConfig (line 338) | class DummySocketConfig: method __init__ (line 339) | def __init__(self, fd, backlog=128): method addr (line 344) | def addr(self): method __eq__ (line 347) | def __eq__(self, other): method __ne__ (line 350) | def __ne__(self, other): method get_backlog (line 353) | def get_backlog(self): method create_and_bind (line 356) | def create_and_bind(self): class DummySocketManager (line 359) | class DummySocketManager: method __init__ (line 360) | def __init__(self, config, **kwargs): method config (line 363) | def config(self): method get_socket (line 366) | def get_socket(self): class DummyProcess (line 370) | class DummyProcess(object): method __init__ (line 397) | def __init__(self, config, state=None): method reopenlogs (line 426) | def reopenlogs(self): method removelogs (line 429) | def removelogs(self): method get_state (line 434) | def get_state(self): method stop (line 437) | def stop(self): method stop_report (line 443) | def stop_report(self): method kill (line 446) | def kill(self, signal): method signal (line 449) | def signal(self, signal): method spawn (line 453) | def spawn(self): method drain (line 458) | def drain(self): method readable_fds (line 461) | def readable_fds(self): method record_output (line 464) | def record_output(self): method finish (line 471) | def finish(self, pid, sts): method give_up (line 474) | def give_up(self): method get_execv_args (line 478) | def get_execv_args(self): method drain_output_fd (line 486) | def drain_output_fd(self, fd): method drain_input_fd (line 489) | def drain_input_fd(self, fd): method write (line 492) | def write(self, chars): method transition (line 497) | def transition(self): method __eq__ (line 500) | def __eq__(self, other): method __lt__ (line 503) | def __lt__(self, other): class DummyPConfig (line 506) | class DummyPConfig: method __init__ (line 507) | def __init__(self, options, name, command, directory=None, umask=None, method get_path (line 557) | def get_path(self): method create_autochildlogs (line 560) | def create_autochildlogs(self): method make_process (line 563) | def make_process(self, group=None): method make_dispatchers (line 568) | def make_dispatchers(self, proc): function makeExecutable (line 582) | def makeExecutable(file, substitutions=None): function makeSpew (line 602) | def makeSpew(unkillable=False): class DummyMedusaServerLogger (line 609) | class DummyMedusaServerLogger: method __init__ (line 610) | def __init__(self): method log (line 612) | def log(self, category, msg): class DummyMedusaServer (line 615) | class DummyMedusaServer: method __init__ (line 616) | def __init__(self): class DummyMedusaChannel (line 619) | class DummyMedusaChannel: method __init__ (line 620) | def __init__(self): method push_with_producer (line 624) | def push_with_producer(self, producer): method close_when_done (line 627) | def close_when_done(self): method set_terminator (line 630) | def set_terminator(self, terminator): class DummyRequest (line 633) | class DummyRequest(object): method __init__ (line 638) | def __init__(self, path, params, query, fragment, env=None): method split_uri (line 650) | def split_uri(self): method error (line 653) | def error(self, code): method push (line 656) | def push(self, producer): method __setitem__ (line 659) | def __setitem__(self, header, value): method __getitem__ (line 662) | def __getitem__(self, header): method __delitem__ (line 665) | def __delitem__(self, header): method has_key (line 668) | def has_key(self, header): method __contains__ (line 671) | def __contains__(self, item): method done (line 674) | def done(self): method build_reply_header (line 677) | def build_reply_header(self): method log (line 680) | def log(self, *arg, **kw): method cgi_environment (line 683) | def cgi_environment(self): method get_server_url (line 686) | def get_server_url(self): class DummyRPCInterfaceFactory (line 690) | class DummyRPCInterfaceFactory: method __init__ (line 691) | def __init__(self, supervisord, **config): class DummyRPCServer (line 695) | class DummyRPCServer: method __init__ (line 696) | def __init__(self): class DummySystemRPCNamespace (line 700) | class DummySystemRPCNamespace: class DummySupervisorRPCNamespace (line 703) | class DummySupervisorRPCNamespace: method getAPIVersion (line 750) | def getAPIVersion(self): method getPID (line 755) | def getPID(self): method _read_log (line 758) | def _read_log(self, channel, name, offset, length): method readProcessStdoutLog (line 769) | def readProcessStdoutLog(self, name, offset, length): method readProcessStderrLog (line 773) | def readProcessStderrLog(self, name, offset, length): method getAllProcessInfo (line 776) | def getAllProcessInfo(self): method getProcessInfo (line 779) | def getProcessInfo(self, name): method startProcess (line 792) | def startProcess(self, name): method startProcessGroup (line 811) | def startProcessGroup(self, name): method startAllProcesses (line 825) | def startAllProcesses(self): method stopProcessGroup (line 839) | def stopProcessGroup(self, name): method stopProcess (line 853) | def stopProcess(self, name): method stopAllProcesses (line 866) | def stopAllProcesses(self): method restart (line 879) | def restart(self): method shutdown (line 886) | def shutdown(self): method reloadConfig (line 893) | def reloadConfig(self): method addProcessGroup (line 896) | def addProcessGroup(self, name): method removeProcessGroup (line 911) | def removeProcessGroup(self, name): method clearProcessStdoutLog (line 921) | def clearProcessStdoutLog(self, name): method clearAllProcessLogs (line 931) | def clearAllProcessLogs(self): method raiseError (line 948) | def raiseError(self): method getXmlRpcUnmarshallable (line 951) | def getXmlRpcUnmarshallable(self): method getSupervisorVersion (line 954) | def getSupervisorVersion(self): method readLog (line 957) | def readLog(self, whence, offset): method signalProcessGroup (line 962) | def signalProcessGroup(self, name, signal): method signalProcess (line 977) | def signalProcess(self, name, signal): method signalAllProcesses (line 992) | def signalAllProcesses(self, signal): class DummyPGroupConfig (line 1009) | class DummyPGroupConfig: method __init__ (line 1010) | def __init__(self, options, name='whatever', priority=999, pconfigs=No... method after_setuid (line 1021) | def after_setuid(self): method make_group (line 1024) | def make_group(self): method __repr__ (line 1027) | def __repr__(self): class DummyFCGIGroupConfig (line 1031) | class DummyFCGIGroupConfig(DummyPGroupConfig): method __init__ (line 1032) | def __init__(self, options, name='whatever', priority=999, pconfigs=No... class DummyProcessGroup (line 1037) | class DummyProcessGroup(object): method __init__ (line 1038) | def __init__(self, config): method transition (line 1046) | def transition(self): method before_remove (line 1049) | def before_remove(self): method stop_all (line 1052) | def stop_all(self): method get_unstopped_processes (line 1055) | def get_unstopped_processes(self): method get_dispatchers (line 1058) | def get_dispatchers(self): method __lt__ (line 1061) | def __lt__(self, other): method __eq__ (line 1064) | def __eq__(self, other): method reopenlogs (line 1067) | def reopenlogs(self): class DummyFCGIProcessGroup (line 1070) | class DummyFCGIProcessGroup(DummyProcessGroup): method __init__ (line 1072) | def __init__(self, config): class PopulatedDummySupervisor (line 1076) | class PopulatedDummySupervisor(DummySupervisor): method __init__ (line 1077) | def __init__(self, options, group_name, *pconfigs): method set_procattr (line 1090) | def set_procattr(self, process_name, attr_name, val, group_name=None): method reap (line 1096) | def reap(self): class DummyDispatcher (line 1099) | class DummyDispatcher: method __init__ (line 1110) | def __init__(self, readable=False, writable=False, error=False): method readable (line 1124) | def readable(self): method writable (line 1126) | def writable(self): method handle_write_event (line 1128) | def handle_write_event(self): method handle_read_event (line 1132) | def handle_read_event(self): method handle_error (line 1136) | def handle_error(self): method close (line 1138) | def close(self): method flush (line 1140) | def flush(self): class DummyStream (line 1145) | class DummyStream: method __init__ (line 1146) | def __init__(self, error=None, fileno=20): method close (line 1152) | def close(self): method flush (line 1156) | def flush(self): method write (line 1160) | def write(self, msg): method seek (line 1166) | def seek(self, num, whence=0): method tell (line 1168) | def tell(self): method fileno (line 1170) | def fileno(self): class DummyEvent (line 1173) | class DummyEvent: method __init__ (line 1174) | def __init__(self, serial='abc'): method payload (line 1178) | def payload(self): class DummyPoller (line 1181) | class DummyPoller: method __init__ (line 1182) | def __init__(self, options): method register_readable (line 1186) | def register_readable(self, fd): method register_writable (line 1189) | def register_writable(self, fd): method poll (line 1192) | def poll(self, timeout): method close (line 1195) | def close(self): function dummy_handler (line 1198) | def dummy_handler(event, result): function rejecting_handler (line 1201) | def rejecting_handler(event, result): function exception_handler (line 1205) | def exception_handler(event, result): function lstrip (line 1208) | def lstrip(s): FILE: supervisor/tests/fixtures/listener.py function write_and_flush (line 4) | def write_and_flush(stream, s): function write_stdout (line 8) | def write_stdout(s): function write_stderr (line 13) | def write_stderr(s): function main (line 17) | def main(): FILE: supervisor/tests/fixtures/test_1231.py function main (line 7) | def main(): FILE: supervisor/tests/test_childutils.py class ChildUtilsTests (line 8) | class ChildUtilsTests(unittest.TestCase): method test_getRPCInterface (line 9) | def test_getRPCInterface(self): method test_getRPCTransport_no_uname_pass (line 15) | def test_getRPCTransport_no_uname_pass(self): method test_getRPCTransport_with_uname_pass (line 22) | def test_getRPCTransport_with_uname_pass(self): method test_get_headers (line 32) | def test_get_headers(self): method test_eventdata (line 38) | def test_eventdata(self): method test_get_asctime (line 45) | def test_get_asctime(self): class TestProcessCommunicationsProtocol (line 51) | class TestProcessCommunicationsProtocol(unittest.TestCase): method test_send (line 52) | def test_send(self): method test_stdout (line 61) | def test_stdout(self): method test_stderr (line 74) | def test_stderr(self): class TestEventListenerProtocol (line 87) | class TestEventListenerProtocol(unittest.TestCase): method test_wait (line 88) | def test_wait(self): method test_token (line 102) | def test_token(self): method test_ok (line 110) | def test_ok(self): method test_fail (line 118) | def test_fail(self): method test_send (line 126) | def test_send(self): FILE: supervisor/tests/test_confecho.py class TopLevelFunctionTests (line 7) | class TopLevelFunctionTests(unittest.TestCase): method test_main_writes_data_out_that_looks_like_a_config_file (line 8) | def test_main_writes_data_out_that_looks_like_a_config_file(self): FILE: supervisor/tests/test_datatypes.py class ProcessOrGroupName (line 15) | class ProcessOrGroupName(unittest.TestCase): method _callFUT (line 16) | def _callFUT(self, arg): method test_strips_surrounding_whitespace (line 19) | def test_strips_surrounding_whitespace(self): method test_disallows_inner_spaces_for_eventlistener_protocol (line 23) | def test_disallows_inner_spaces_for_eventlistener_protocol(self): method test_disallows_colons_for_eventlistener_protocol (line 27) | def test_disallows_colons_for_eventlistener_protocol(self): method test_disallows_slashes_for_web_ui_urls (line 31) | def test_disallows_slashes_for_web_ui_urls(self): class IntegerTests (line 35) | class IntegerTests(unittest.TestCase): method _callFUT (line 36) | def _callFUT(self, arg): method test_converts_numeric (line 39) | def test_converts_numeric(self): method test_converts_numeric_overflowing_int (line 42) | def test_converts_numeric_overflowing_int(self): method test_raises_for_non_numeric (line 45) | def test_raises_for_non_numeric(self): class BooleanTests (line 48) | class BooleanTests(unittest.TestCase): method _callFUT (line 49) | def _callFUT(self, arg): method test_returns_true_for_truthy_values (line 52) | def test_returns_true_for_truthy_values(self): method test_returns_true_for_upper_truthy_values (line 56) | def test_returns_true_for_upper_truthy_values(self): method test_returns_false_for_falsy_values (line 60) | def test_returns_false_for_falsy_values(self): method test_returns_false_for_upper_falsy_values (line 64) | def test_returns_false_for_upper_falsy_values(self): method test_braises_value_error_for_bad_value (line 68) | def test_braises_value_error_for_bad_value(self): class ListOfStringsTests (line 72) | class ListOfStringsTests(unittest.TestCase): method _callFUT (line 73) | def _callFUT(self, arg): method test_returns_empty_list_for_empty_string (line 76) | def test_returns_empty_list_for_empty_string(self): method test_returns_list_of_strings_by_comma_split (line 79) | def test_returns_list_of_strings_by_comma_split(self): method test_returns_strings_with_whitespace_stripped (line 82) | def test_returns_strings_with_whitespace_stripped(self): method test_raises_value_error_when_comma_split_fails (line 85) | def test_raises_value_error_when_comma_split_fails(self): class ListOfIntsTests (line 89) | class ListOfIntsTests(unittest.TestCase): method _callFUT (line 90) | def _callFUT(self, arg): method test_returns_empty_list_for_empty_string (line 93) | def test_returns_empty_list_for_empty_string(self): method test_returns_list_of_ints_by_comma_split (line 96) | def test_returns_list_of_ints_by_comma_split(self): method test_returns_ints_even_if_whitespace_in_string (line 99) | def test_returns_ints_even_if_whitespace_in_string(self): method test_raises_value_error_when_comma_split_fails (line 102) | def test_raises_value_error_when_comma_split_fails(self): method test_raises_value_error_when_one_value_is_bad (line 106) | def test_raises_value_error_when_one_value_is_bad(self): class ListOfExitcodesTests (line 110) | class ListOfExitcodesTests(unittest.TestCase): method _callFUT (line 111) | def _callFUT(self, arg): method test_returns_list_of_ints_from_csv (line 114) | def test_returns_list_of_ints_from_csv(self): method test_returns_list_of_ints_from_one (line 117) | def test_returns_list_of_ints_from_one(self): method test_raises_for_invalid_exitcode_values (line 120) | def test_raises_for_invalid_exitcode_values(self): class DictOfKeyValuePairsTests (line 125) | class DictOfKeyValuePairsTests(unittest.TestCase): method _callFUT (line 126) | def _callFUT(self, arg): method test_returns_empty_dict_for_empty_str (line 129) | def test_returns_empty_dict_for_empty_str(self): method test_returns_dict_from_single_pair_str (line 133) | def test_returns_dict_from_single_pair_str(self): method test_returns_dict_from_multi_pair_str (line 138) | def test_returns_dict_from_multi_pair_str(self): method test_returns_dict_even_if_whitespace (line 143) | def test_returns_dict_even_if_whitespace(self): method test_returns_dict_even_if_newlines (line 148) | def test_returns_dict_even_if_newlines(self): method test_handles_commas_inside_apostrophes (line 153) | def test_handles_commas_inside_apostrophes(self): method test_handles_commas_inside_quotes (line 158) | def test_handles_commas_inside_quotes(self): method test_handles_newlines_inside_quotes (line 163) | def test_handles_newlines_inside_quotes(self): method test_handles_quotes_inside_quotes (line 168) | def test_handles_quotes_inside_quotes(self): method test_handles_empty_inside_quotes (line 178) | def test_handles_empty_inside_quotes(self): method test_handles_empty_inside_quotes_with_second_unquoted_pair (line 183) | def test_handles_empty_inside_quotes_with_second_unquoted_pair(self): method test_handles_unquoted_non_alphanum (line 188) | def test_handles_unquoted_non_alphanum(self): method test_allows_trailing_comma (line 196) | def test_allows_trailing_comma(self): method test_raises_value_error_on_too_short (line 201) | def test_raises_value_error_on_too_short(self): method test_raises_when_comma_is_missing (line 211) | def test_raises_when_comma_is_missing(self): class LogfileNameTests (line 216) | class LogfileNameTests(unittest.TestCase): method _callFUT (line 217) | def _callFUT(self, arg): method test_returns_none_for_none_values (line 220) | def test_returns_none_for_none_values(self): method test_returns_none_for_uppered_none_values (line 225) | def test_returns_none_for_uppered_none_values(self): method test_returns_automatic_for_auto_values (line 232) | def test_returns_automatic_for_auto_values(self): method test_returns_automatic_for_uppered_auto_values (line 237) | def test_returns_automatic_for_uppered_auto_values(self): method test_returns_syslog_for_syslog_values (line 244) | def test_returns_syslog_for_syslog_values(self): method test_returns_syslog_for_uppered_syslog_values (line 249) | def test_returns_syslog_for_uppered_syslog_values(self): method test_returns_existing_dirpath_for_other_values (line 256) | def test_returns_existing_dirpath_for_other_values(self): class RangeCheckedConversionTests (line 266) | class RangeCheckedConversionTests(unittest.TestCase): method _getTargetClass (line 267) | def _getTargetClass(self): method _makeOne (line 270) | def _makeOne(self, conversion, min=None, max=None): method test_below_lower_bound (line 273) | def test_below_lower_bound(self): method test_above_upper_lower_bound (line 277) | def test_above_upper_lower_bound(self): method test_passes (line 281) | def test_passes(self): class NameToGidTests (line 286) | class NameToGidTests(unittest.TestCase): method _callFUT (line 287) | def _callFUT(self, arg): method test_gets_gid_from_group_name (line 291) | def test_gets_gid_from_group_name(self): method test_gets_gid_from_group_id (line 296) | def test_gets_gid_from_group_id(self): method test_raises_for_bad_group_name (line 301) | def test_raises_for_bad_group_name(self): method test_raises_for_bad_group_id (line 305) | def test_raises_for_bad_group_id(self): class NameToUidTests (line 308) | class NameToUidTests(unittest.TestCase): method _callFUT (line 309) | def _callFUT(self, arg): method test_gets_uid_from_username (line 313) | def test_gets_uid_from_username(self): method test_gets_uid_from_user_id (line 318) | def test_gets_uid_from_user_id(self): method test_raises_for_bad_username (line 323) | def test_raises_for_bad_username(self): method test_raises_for_bad_user_id (line 327) | def test_raises_for_bad_user_id(self): class OctalTypeTests (line 330) | class OctalTypeTests(unittest.TestCase): method _callFUT (line 331) | def _callFUT(self, arg): method test_success (line 334) | def test_success(self): method test_raises_for_non_numeric (line 337) | def test_raises_for_non_numeric(self): method test_raises_for_unconvertable_numeric (line 345) | def test_raises_for_unconvertable_numeric(self): class ExistingDirectoryTests (line 353) | class ExistingDirectoryTests(unittest.TestCase): method _callFUT (line 354) | def _callFUT(self, arg): method test_dir_exists (line 357) | def test_dir_exists(self): method test_dir_does_not_exist (line 361) | def test_dir_does_not_exist(self): method test_not_a_directory (line 370) | def test_not_a_directory(self): method test_expands_home (line 379) | def test_expands_home(self): class ExistingDirpathTests (line 385) | class ExistingDirpathTests(unittest.TestCase): method _callFUT (line 386) | def _callFUT(self, arg): method test_returns_existing_dirpath (line 389) | def test_returns_existing_dirpath(self): method test_returns_dirpath_if_relative (line 392) | def test_returns_dirpath_if_relative(self): method test_raises_if_dir_does_not_exist (line 395) | def test_raises_if_dir_does_not_exist(self): method test_raises_if_exists_but_not_a_dir (line 405) | def test_raises_if_exists_but_not_a_dir(self): method test_expands_home (line 416) | def test_expands_home(self): class LoggingLevelTests (line 422) | class LoggingLevelTests(unittest.TestCase): method _callFUT (line 423) | def _callFUT(self, arg): method test_returns_level_from_name_case_insensitive (line 426) | def test_returns_level_from_name_case_insensitive(self): method test_raises_for_bad_level_name (line 430) | def test_raises_for_bad_level_name(self): class UrlTests (line 434) | class UrlTests(unittest.TestCase): method _callFUT (line 435) | def _callFUT(self, arg): method test_accepts_urlparse_recognized_scheme_with_netloc (line 438) | def test_accepts_urlparse_recognized_scheme_with_netloc(self): method test_rejects_urlparse_recognized_scheme_but_no_netloc (line 442) | def test_rejects_urlparse_recognized_scheme_but_no_netloc(self): method test_accepts_unix_scheme_with_path (line 446) | def test_accepts_unix_scheme_with_path(self): method test_rejects_unix_scheme_with_no_slashes_or_path (line 450) | def test_rejects_unix_scheme_with_no_slashes_or_path(self): method test_rejects_unix_scheme_with_slashes_but_no_path (line 454) | def test_rejects_unix_scheme_with_slashes_but_no_path(self): class InetStreamSocketConfigTests (line 458) | class InetStreamSocketConfigTests(unittest.TestCase): method _getTargetClass (line 459) | def _getTargetClass(self): method _makeOne (line 462) | def _makeOne(self, *args, **kw): method test_url (line 465) | def test_url(self): method test___str__ (line 469) | def test___str__(self): method test_repr (line 473) | def test_repr(self): method test_addr (line 479) | def test_addr(self): method test_port_as_string (line 484) | def test_port_as_string(self): method test_create_and_bind (line 489) | def test_create_and_bind(self): method test_same_urls_are_equal (line 497) | def test_same_urls_are_equal(self): method test_diff_urls_are_not_equal (line 503) | def test_diff_urls_are_not_equal(self): method test_diff_objs_are_not_equal (line 509) | def test_diff_objs_are_not_equal(self): class UnixStreamSocketConfigTests (line 515) | class UnixStreamSocketConfigTests(unittest.TestCase): method _getTargetClass (line 516) | def _getTargetClass(self): method _makeOne (line 519) | def _makeOne(self, *args, **kw): method test_url (line 522) | def test_url(self): method test___str__ (line 526) | def test___str__(self): method test_repr (line 530) | def test_repr(self): method test_get_addr (line 536) | def test_get_addr(self): method test_create_and_bind (line 541) | def test_create_and_bind(self): method test_create_and_bind_when_chown_fails (line 579) | def test_create_and_bind_when_chown_fails(self): method test_create_and_bind_when_chmod_fails (line 598) | def test_create_and_bind_when_chmod_fails(self): method test_same_paths_are_equal (line 617) | def test_same_paths_are_equal(self): method test_diff_paths_are_not_equal (line 623) | def test_diff_paths_are_not_equal(self): method test_diff_objs_are_not_equal (line 629) | def test_diff_objs_are_not_equal(self): class InetAddressTests (line 635) | class InetAddressTests(unittest.TestCase): method _callFUT (line 636) | def _callFUT(self, s): method test_no_port_number (line 639) | def test_no_port_number(self): method test_bad_port_number (line 642) | def test_bad_port_number(self): method test_default_host (line 645) | def test_default_host(self): method test_hostname_and_port (line 650) | def test_hostname_and_port(self): method test_ipv4_address_and_port (line 655) | def test_ipv4_address_and_port(self): method test_ipv6_address_and_port (line 660) | def test_ipv6_address_and_port(self): class SocketAddressTests (line 665) | class SocketAddressTests(unittest.TestCase): method _getTargetClass (line 666) | def _getTargetClass(self): method _makeOne (line 669) | def _makeOne(self, s): method test_unix_socket (line 672) | def test_unix_socket(self): method test_inet_socket (line 677) | def test_inet_socket(self): class ColonSeparatedUserGroupTests (line 682) | class ColonSeparatedUserGroupTests(unittest.TestCase): method _callFUT (line 683) | def _callFUT(self, arg): method test_ok_username (line 686) | def test_ok_username(self): method test_missinguser_username (line 689) | def test_missinguser_username(self): method test_missinguser_username_and_groupname (line 693) | def test_missinguser_username_and_groupname(self): method test_separated_user_group_returns_both (line 697) | def test_separated_user_group_returns_both(self): method test_separated_user_group_returns_user_only (line 712) | def test_separated_user_group_returns_user_only(self): class SignalNumberTests (line 724) | class SignalNumberTests(unittest.TestCase): method _callFUT (line 725) | def _callFUT(self, arg): method test_converts_number (line 728) | def test_converts_number(self): method test_converts_name (line 731) | def test_converts_name(self): method test_converts_signame (line 734) | def test_converts_signame(self): method test_raises_for_bad_number (line 737) | def test_raises_for_bad_number(self): method test_raises_for_bad_name (line 745) | def test_raises_for_bad_name(self): class AutoRestartTests (line 753) | class AutoRestartTests(unittest.TestCase): method _callFUT (line 754) | def _callFUT(self, arg): method test_converts_truthy (line 757) | def test_converts_truthy(self): method test_converts_falsy (line 762) | def test_converts_falsy(self): method test_converts_unexpected (line 766) | def test_converts_unexpected(self): method test_raises_for_bad_value (line 771) | def test_raises_for_bad_value(self): class ProfileOptionsTests (line 778) | class ProfileOptionsTests(unittest.TestCase): method _callFUT (line 779) | def _callFUT(self, arg): method test_empty (line 782) | def test_empty(self): method test_without_callers (line 787) | def test_without_callers(self): method test_with_callers (line 792) | def test_with_callers(self): FILE: supervisor/tests/test_dispatchers.py class PDispatcherTests (line 12) | class PDispatcherTests(unittest.TestCase): method setUp (line 13) | def setUp(self): method tearDown (line 17) | def tearDown(self): method _getTargetClass (line 21) | def _getTargetClass(self): method _makeOne (line 25) | def _makeOne(self, process=None, channel='stdout', fd=0): method test_readable (line 28) | def test_readable(self): method test_writable (line 32) | def test_writable(self): method test_flush (line 36) | def test_flush(self): class POutputDispatcherTests (line 40) | class POutputDispatcherTests(unittest.TestCase): method setUp (line 41) | def setUp(self): method tearDown (line 45) | def tearDown(self): method _getTargetClass (line 49) | def _getTargetClass(self): method _makeOne (line 53) | def _makeOne(self, process, channel='stdout'): method test_writable (line 60) | def test_writable(self): method test_readable_open (line 67) | def test_readable_open(self): method test_readable_closed (line 75) | def test_readable_closed(self): method test_handle_write_event (line 83) | def test_handle_write_event(self): method test_handle_read_event (line 90) | def test_handle_read_event(self): method test_handle_read_event_no_data_closes (line 100) | def test_handle_read_event_no_data_closes(self): method test_handle_error (line 112) | def test_handle_error(self): method test_toggle_capturemode_sends_event (line 125) | def test_toggle_capturemode_sends_event(self): method test_removelogs (line 147) | def test_removelogs(self): method test_reopenlogs (line 159) | def test_reopenlogs(self): method test_record_output_log_non_capturemode (line 169) | def test_record_output_log_non_capturemode(self): method test_record_output_emits_stdout_event_when_enabled (line 186) | def test_record_output_emits_stdout_event_when_enabled(self): method test_record_output_does_not_emit_stdout_event_when_disabled (line 206) | def test_record_output_does_not_emit_stdout_event_when_disabled(self): method test_record_output_emits_stderr_event_when_enabled (line 223) | def test_record_output_emits_stderr_event_when_enabled(self): method test_record_output_does_not_emit_stderr_event_when_disabled (line 243) | def test_record_output_does_not_emit_stderr_event_when_disabled(self): method test_record_output_capturemode_string_longer_than_token (line 260) | def test_record_output_capturemode_string_longer_than_token(self): method test_record_output_capturemode_string_not_longer_than_token (line 279) | def test_record_output_capturemode_string_not_longer_than_token(self): method test_stdout_capturemode_single_buffer (line 294) | def test_stdout_capturemode_single_buffer(self): method test_stdout_capturemode_multiple_buffers (line 338) | def test_stdout_capturemode_multiple_buffers(self): method test_strip_ansi (line 408) | def test_strip_ansi(self): method test_ctor_no_logfiles (line 430) | def test_ctor_no_logfiles(self): method test_ctor_logfile_only (line 442) | def test_ctor_logfile_only(self): method test_ctor_capturelog_only (line 455) | def test_ctor_capturelog_only(self): method test_ctor_stdout_logfile_is_empty_string (line 468) | def test_ctor_stdout_logfile_is_empty_string(self): method test_ctor_stdout_logfile_none_and_stdout_syslog_false (line 480) | def test_ctor_stdout_logfile_none_and_stdout_syslog_false(self): method test_ctor_stdout_logfile_none_and_stdout_syslog_true (line 493) | def test_ctor_stdout_logfile_none_and_stdout_syslog_true(self): method test_ctor_stdout_logfile_str_and_stdout_syslog_false (line 511) | def test_ctor_stdout_logfile_str_and_stdout_syslog_false(self): method test_ctor_stdout_logfile_str_and_stdout_syslog_true (line 529) | def test_ctor_stdout_logfile_str_and_stdout_syslog_true(self): method test_repr (line 550) | def test_repr(self): method test_close (line 562) | def test_close(self): class PInputDispatcherTests (line 573) | class PInputDispatcherTests(unittest.TestCase): method _getTargetClass (line 574) | def _getTargetClass(self): method _makeOne (line 578) | def _makeOne(self, process): method test_writable_open_nodata (line 582) | def test_writable_open_nodata(self): method test_writable_open_withdata (line 589) | def test_writable_open_withdata(self): method test_writable_closed_nodata (line 596) | def test_writable_closed_nodata(self): method test_writable_closed_withdata (line 603) | def test_writable_closed_withdata(self): method test_readable (line 610) | def test_readable(self): method test_handle_write_event (line 615) | def test_handle_write_event(self): method test_handle_write_event_nodata (line 624) | def test_handle_write_event_nodata(self): method test_handle_write_event_epipe_raised (line 634) | def test_handle_write_event_epipe_raised(self): method test_handle_write_event_uncaught_raised (line 649) | def test_handle_write_event_uncaught_raised(self): method test_handle_write_event_over_os_limit (line 660) | def test_handle_write_event_over_os_limit(self): method test_handle_read_event (line 671) | def test_handle_read_event(self): method test_handle_error (line 676) | def test_handle_error(self): method test_repr (line 689) | def test_repr(self): method test_close (line 701) | def test_close(self): class PEventListenerDispatcherTests (line 711) | class PEventListenerDispatcherTests(unittest.TestCase): method setUp (line 712) | def setUp(self): method tearDown (line 716) | def tearDown(self): method _getTargetClass (line 720) | def _getTargetClass(self): method _makeOne (line 724) | def _makeOne(self, process): method test_writable (line 728) | def test_writable(self): method test_readable_open (line 735) | def test_readable_open(self): method test_readable_closed (line 743) | def test_readable_closed(self): method test_handle_write_event (line 751) | def test_handle_write_event(self): method test_handle_read_event_calls_handle_listener_state_change (line 758) | def test_handle_read_event_calls_handle_listener_state_change(self): method test_handle_read_event_nodata (line 774) | def test_handle_read_event_nodata(self): method test_handle_read_event_logging_nologs (line 786) | def test_handle_read_event_logging_nologs(self): method test_handle_read_event_logging_childlog (line 797) | def test_handle_read_event_logging_childlog(self): method test_handle_listener_state_change_from_unknown (line 809) | def test_handle_listener_state_change_from_unknown(self): method test_handle_listener_state_change_acknowledged_to_ready (line 822) | def test_handle_listener_state_change_acknowledged_to_ready(self): method test_handle_listener_state_change_acknowledged_gobbles (line 836) | def test_handle_listener_state_change_acknowledged_gobbles(self): method test_handle_listener_state_change_acknowledged_to_insufficient (line 852) | def test_handle_listener_state_change_acknowledged_to_insufficient(self): method test_handle_listener_state_change_acknowledged_to_unknown (line 866) | def test_handle_listener_state_change_acknowledged_to_unknown(self): method test_handle_listener_state_change_ready_to_unknown (line 884) | def test_handle_listener_state_change_ready_to_unknown(self): method test_handle_listener_state_change_busy_to_insufficient (line 902) | def test_handle_listener_state_change_busy_to_insufficient(self): method test_handle_listener_state_change_busy_to_acknowledged_procd (line 914) | def test_handle_listener_state_change_busy_to_acknowledged_procd(self): method test_handle_listener_state_change_busy_to_acknowledged_rejected (line 937) | def test_handle_listener_state_change_busy_to_acknowledged_rejected(se... method test_handle_listener_state_change_busy_to_unknown (line 960) | def test_handle_listener_state_change_busy_to_unknown(self): method test_handle_listener_state_busy_gobbles (line 991) | def test_handle_listener_state_busy_gobbles(self): method test_handle_result_accept (line 1020) | def test_handle_result_accept(self): method test_handle_result_rejectevent (line 1049) | def test_handle_result_rejectevent(self): method test_handle_result_exception (line 1080) | def test_handle_result_exception(self): method test_handle_error (line 1115) | def test_handle_error(self): method test_removelogs (line 1128) | def test_removelogs(self): method test_reopenlogs (line 1138) | def test_reopenlogs(self): method test_strip_ansi (line 1147) | def test_strip_ansi(self): method test_ctor_nologfiles (line 1169) | def test_ctor_nologfiles(self): method test_ctor_logfile_only (line 1179) | def test_ctor_logfile_only(self): method test_repr (line 1190) | def test_repr(self): method test_close (line 1202) | def test_close(self): class stripEscapeTests (line 1213) | class stripEscapeTests(unittest.TestCase): method _callFUT (line 1214) | def _callFUT(self, s): method test_zero_length_string (line 1218) | def test_zero_length_string(self): method test_ansi (line 1221) | def test_ansi(self): method test_noansi (line 1226) | def test_noansi(self): FILE: supervisor/tests/test_end_to_end.py class EndToEndTests (line 20) | class EndToEndTests(BaseTestCase): method test_issue_291a_percent_signs_in_original_env_are_preserved (line 22) | def test_issue_291a_percent_signs_in_original_env_are_preserved(self): method test_issue_550 (line 38) | def test_issue_550(self): method test_issue_565 (line 54) | def test_issue_565(self): method test_issue_638 (line 71) | def test_issue_638(self): method test_issue_663 (line 90) | def test_issue_663(self): method test_issue_664 (line 101) | def test_issue_664(self): method test_issue_733 (line 121) | def test_issue_733(self): method test_issue_835 (line 132) | def test_issue_835(self): method test_issue_836 (line 148) | def test_issue_836(self): method test_issue_986_command_string_with_double_percent (line 169) | def test_issue_986_command_string_with_double_percent(self): method test_issue_1054 (line 178) | def test_issue_1054(self): method test_issue_1170a (line 195) | def test_issue_1170a(self): method test_issue_1170b (line 205) | def test_issue_1170b(self): method test_issue_1170c (line 216) | def test_issue_1170c(self): method test_issue_1224 (line 227) | def test_issue_1224(self): method test_issue_1231a (line 238) | def test_issue_1231a(self): method test_issue_1231b (line 255) | def test_issue_1231b(self): method test_issue_1231c (line 289) | def test_issue_1231c(self): method test_issue_1251 (line 313) | def test_issue_1251(self): method test_issue_1298 (line 330) | def test_issue_1298(self): method test_issue_1418_pidproxy_cmd_with_no_args (line 347) | def test_issue_1418_pidproxy_cmd_with_no_args(self): method test_issue_1418_pidproxy_cmd_with_args (line 356) | def test_issue_1418_pidproxy_cmd_with_args(self): method test_issue_1483a_identifier_default (line 365) | def test_issue_1483a_identifier_default(self): method test_issue_1483b_identifier_from_config_file (line 384) | def test_issue_1483b_identifier_from_config_file(self): method test_issue_1483c_identifier_from_command_line (line 403) | def test_issue_1483c_identifier_from_command_line(self): method test_pull_request_1578_echo_supervisord_conf (line 422) | def test_pull_request_1578_echo_supervisord_conf(self): method test_issue_1596_asyncore_close_does_not_crash (line 430) | def test_issue_1596_asyncore_close_does_not_crash(self): FILE: supervisor/tests/test_events.py class EventSubscriptionNotificationTests (line 8) | class EventSubscriptionNotificationTests(unittest.TestCase): method setUp (line 9) | def setUp(self): method tearDown (line 13) | def tearDown(self): method test_subscribe (line 17) | def test_subscribe(self): method test_unsubscribe (line 22) | def test_unsubscribe(self): method test_clear (line 28) | def test_clear(self): method test_notify_true (line 34) | def test_notify_true(self): method test_notify_false (line 43) | def test_notify_false(self): method test_notify_via_subclass (line 54) | def test_notify_via_subclass(self): class TestEventTypes (line 66) | class TestEventTypes(unittest.TestCase): method test_ProcessLogEvent_attributes (line 67) | def test_ProcessLogEvent_attributes(self): method test_ProcessLogEvent_inheritance (line 74) | def test_ProcessLogEvent_inheritance(self): method test_ProcessLogStdoutEvent_attributes (line 81) | def test_ProcessLogStdoutEvent_attributes(self): method test_ProcessLogStdoutEvent_inheritance (line 89) | def test_ProcessLogStdoutEvent_inheritance(self): method test_ProcessLogStderrEvent_attributes (line 96) | def test_ProcessLogStderrEvent_attributes(self): method test_ProcessLogStderrEvent_inheritance (line 104) | def test_ProcessLogStderrEvent_inheritance(self): method test_ProcessCommunicationEvent_attributes (line 111) | def test_ProcessCommunicationEvent_attributes(self): method test_ProcessCommunicationEvent_inheritance (line 118) | def test_ProcessCommunicationEvent_inheritance(self): method test_ProcessCommunicationStdoutEvent_attributes (line 125) | def test_ProcessCommunicationStdoutEvent_attributes(self): method test_ProcessCommunicationStdoutEvent_inheritance (line 133) | def test_ProcessCommunicationStdoutEvent_inheritance(self): method test_ProcessCommunicationStderrEvent_attributes (line 141) | def test_ProcessCommunicationStderrEvent_attributes(self): method test_ProcessCommunicationStderrEvent_inheritance (line 149) | def test_ProcessCommunicationStderrEvent_inheritance(self): method test_RemoteCommunicationEvent_attributes (line 157) | def test_RemoteCommunicationEvent_attributes(self): method test_RemoteCommunicationEvent_inheritance (line 163) | def test_RemoteCommunicationEvent_inheritance(self): method test_EventRejectedEvent_attributes (line 170) | def test_EventRejectedEvent_attributes(self): method test_EventRejectedEvent_does_not_inherit_from_event (line 180) | def test_EventRejectedEvent_does_not_inherit_from_event(self): method test_all_SupervisorStateChangeEvents (line 187) | def test_all_SupervisorStateChangeEvents(self): method _test_one_SupervisorStateChangeEvent (line 196) | def _test_one_SupervisorStateChangeEvent(self, klass): method test_all_ProcessStateEvents (line 200) | def test_all_ProcessStateEvents(self): method _test_one_ProcessStateEvent (line 215) | def _test_one_ProcessStateEvent(self, klass): method test_all_TickEvents (line 227) | def test_all_TickEvents(self): method _test_one_TickEvent (line 237) | def _test_one_TickEvent(self, klass): method test_ProcessGroupAddedEvent_attributes (line 245) | def test_ProcessGroupAddedEvent_attributes(self): method test_ProcessGroupRemovedEvent_attributes (line 250) | def test_ProcessGroupRemovedEvent_attributes(self): class TestSerializations (line 255) | class TestSerializations(unittest.TestCase): method _deserialize (line 256) | def _deserialize(self, serialization): method test_plog_stdout_event (line 272) | def test_plog_stdout_event(self): method test_plog_stderr_event (line 287) | def test_plog_stderr_event(self): method test_pcomm_stdout_event (line 302) | def test_pcomm_stdout_event(self): method test_pcomm_stderr_event (line 317) | def test_pcomm_stderr_event(self): method test_remote_comm_event (line 332) | def test_remote_comm_event(self): method test_process_group_added_event (line 339) | def test_process_group_added_event(self): method test_process_group_removed_event (line 346) | def test_process_group_removed_event(self): method test_process_state_events_without_extra_values (line 353) | def test_process_state_events_without_extra_values(self): method test_process_state_events_with_pid (line 375) | def test_process_state_events_with_pid(self): method test_process_state_events_starting_and_backoff (line 400) | def test_process_state_events_starting_and_backoff(self): method test_process_state_exited_event_expected (line 431) | def test_process_state_exited_event_expected(self): method test_process_state_exited_event_unexpected (line 453) | def test_process_state_exited_event_unexpected(self): method test_supervisor_sc_event (line 475) | def test_supervisor_sc_event(self): method test_tick_events (line 482) | def test_tick_events(self): class TestUtilityFunctions (line 494) | class TestUtilityFunctions(unittest.TestCase): method test_getEventNameByType (line 495) | def test_getEventNameByType(self): method test_register (line 500) | def test_register(self): FILE: supervisor/tests/test_http.py class HandlerTests (line 22) | class HandlerTests: method _makeOne (line 23) | def _makeOne(self, supervisord): method test_match (line 26) | def test_match(self): class LogtailHandlerTests (line 34) | class LogtailHandlerTests(HandlerTests, unittest.TestCase): method _getTargetClass (line 35) | def _getTargetClass(self): method test_handle_request_stdout_logfile_none (line 39) | def test_handle_request_stdout_logfile_none(self): method test_handle_request_stdout_logfile_missing (line 49) | def test_handle_request_stdout_logfile_missing(self): method test_handle_request (line 58) | def test_handle_request(self): class MainLogTailHandlerTests (line 76) | class MainLogTailHandlerTests(HandlerTests, unittest.TestCase): method _getTargetClass (line 77) | def _getTargetClass(self): method test_handle_request_stdout_logfile_none (line 81) | def test_handle_request_stdout_logfile_none(self): method test_handle_request_stdout_logfile_missing (line 88) | def test_handle_request_stdout_logfile_missing(self): method test_handle_request (line 96) | def test_handle_request(self): class TailFProducerTests (line 113) | class TailFProducerTests(unittest.TestCase): method _getTargetClass (line 114) | def _getTargetClass(self): method _makeOne (line 118) | def _makeOne(self, request, filename, head): method test_handle_more (line 121) | def test_handle_more(self): method test_handle_more_fd_closed (line 141) | def test_handle_more_fd_closed(self): method test_handle_more_follow_file_recreated (line 151) | def test_handle_more_follow_file_recreated(self): method test_handle_more_follow_file_gone (line 169) | def test_handle_more_follow_file_gone(self): class DeferringChunkedProducerTests (line 188) | class DeferringChunkedProducerTests(unittest.TestCase): method _getTargetClass (line 189) | def _getTargetClass(self): method _makeOne (line 193) | def _makeOne(self, producer, footers=None): method test_more_not_done_yet (line 196) | def test_more_not_done_yet(self): method test_more_string (line 201) | def test_more_string(self): method test_more_nodata (line 206) | def test_more_nodata(self): method test_more_nodata_footers (line 211) | def test_more_nodata_footers(self): method test_more_nodata_nofooters (line 216) | def test_more_nodata_nofooters(self): method test_more_noproducer (line 221) | def test_more_noproducer(self): class DeferringCompositeProducerTests (line 225) | class DeferringCompositeProducerTests(unittest.TestCase): method _getTargetClass (line 226) | def _getTargetClass(self): method _makeOne (line 230) | def _makeOne(self, producers): method test_more_not_done_yet (line 233) | def test_more_not_done_yet(self): method test_more_string (line 238) | def test_more_string(self): method test_more_nodata (line 246) | def test_more_nodata(self): class DeferringGlobbingProducerTests (line 251) | class DeferringGlobbingProducerTests(unittest.TestCase): method _getTargetClass (line 252) | def _getTargetClass(self): method _makeOne (line 256) | def _makeOne(self, producer, buffer_size=1<<16): method test_more_not_done_yet (line 259) | def test_more_not_done_yet(self): method test_more_string (line 264) | def test_more_string(self): method test_more_nodata (line 273) | def test_more_nodata(self): class DeferringHookedProducerTests (line 278) | class DeferringHookedProducerTests(unittest.TestCase): method _getTargetClass (line 279) | def _getTargetClass(self): method _makeOne (line 283) | def _makeOne(self, producer, function): method test_more_not_done_yet (line 286) | def test_more_not_done_yet(self): method test_more_string (line 291) | def test_more_string(self): method test_more_nodata (line 302) | def test_more_nodata(self): method test_more_noproducer (line 311) | def test_more_noproducer(self): class DeferringHttpRequestTests (line 315) | class DeferringHttpRequestTests(unittest.TestCase): method _getTargetClass (line 316) | def _getTargetClass(self): method _makeOne (line 320) | def _makeOne( method _makeChannel (line 333) | def _makeChannel(self): method test_done_http_10_nokeepalive (line 342) | def test_done_http_10_nokeepalive(self): method test_done_http_10_keepalive_no_content_length (line 348) | def test_done_http_10_keepalive_no_content_length(self): method test_done_http_10_keepalive_and_content_length (line 359) | def test_done_http_10_keepalive_and_content_length(self): method test_done_http_11_connection_close (line 371) | def test_done_http_11_connection_close(self): method test_done_http_11_unknown_transfer_encoding (line 381) | def test_done_http_11_unknown_transfer_encoding(self): method test_done_http_11_chunked_transfer_encoding (line 391) | def test_done_http_11_chunked_transfer_encoding(self): method test_done_http_11_use_chunked (line 401) | def test_done_http_11_use_chunked(self): method test_done_http_11_wo_content_length_no_te_no_use_chunked_close (line 412) | def test_done_http_11_wo_content_length_no_te_no_use_chunked_close(self): method test_done_http_09 (line 422) | def test_done_http_09(self): class DeferringHttpChannelTests (line 431) | class DeferringHttpChannelTests(unittest.TestCase): method _getTargetClass (line 432) | def _getTargetClass(self): method _makeOne (line 436) | def _makeOne(self): method test_defaults_delay_and_last_writable_check_time (line 443) | def test_defaults_delay_and_last_writable_check_time(self): method test_writable_with_delay_is_False_if_elapsed_lt_delay (line 448) | def test_writable_with_delay_is_False_if_elapsed_lt_delay(self): method test_writable_with_delay_is_False_if_elapsed_eq_delay (line 456) | def test_writable_with_delay_is_False_if_elapsed_eq_delay(self): method test_writable_with_delay_is_True_if_elapsed_gt_delay (line 464) | def test_writable_with_delay_is_True_if_elapsed_gt_delay(self): method test_writable_with_delay_is_True_if_system_time_goes_backwards (line 472) | def test_writable_with_delay_is_True_if_system_time_goes_backwards(self): class EncryptedDictionaryAuthorizedTests (line 482) | class EncryptedDictionaryAuthorizedTests(unittest.TestCase): method _getTargetClass (line 483) | def _getTargetClass(self): method _makeOne (line 487) | def _makeOne(self, dict): method test_authorize_baduser (line 490) | def test_authorize_baduser(self): method test_authorize_gooduser_badpassword (line 494) | def test_authorize_gooduser_badpassword(self): method test_authorize_gooduser_goodpassword (line 498) | def test_authorize_gooduser_goodpassword(self): method test_authorize_gooduser_goodpassword_with_colon (line 502) | def test_authorize_gooduser_goodpassword_with_colon(self): method test_authorize_gooduser_badpassword_sha (line 506) | def test_authorize_gooduser_badpassword_sha(self): method test_authorize_gooduser_goodpassword_sha (line 511) | def test_authorize_gooduser_goodpassword_sha(self): class SupervisorAuthHandlerTests (line 516) | class SupervisorAuthHandlerTests(unittest.TestCase): method _getTargetClass (line 517) | def _getTargetClass(self): method _makeOne (line 521) | def _makeOne(self, dict, handler): method test_ctor (line 524) | def test_ctor(self): method test_handle_request_authorizes_good_credentials (line 530) | def test_handle_request_authorizes_good_credentials(self): method test_handle_request_authorizes_good_password_with_colon (line 539) | def test_handle_request_authorizes_good_password_with_colon(self): method test_handle_request_does_not_authorize_bad_credentials (line 549) | def test_handle_request_does_not_authorize_bad_credentials(self): class LogWrapperTests (line 558) | class LogWrapperTests(unittest.TestCase): method _getTargetClass (line 559) | def _getTargetClass(self): method _makeOne (line 563) | def _makeOne(self, logger): method test_strips_trailing_newlines_from_msgs (line 566) | def test_strips_trailing_newlines_from_msgs(self): method test_logs_msgs_with_error_at_error_level (line 574) | def test_logs_msgs_with_error_at_error_level(self): method test_logs_other_messages_at_trace_level (line 583) | def test_logs_other_messages_at_trace_level(self): class TopLevelFunctionTests (line 592) | class TopLevelFunctionTests(unittest.TestCase): method _make_http_servers (line 593) | def _make_http_servers(self, sconfigs): method test_make_http_servers_socket_type_error (line 611) | def test_make_http_servers_socket_type_error(self): method test_make_http_servers_noauth (line 621) | def test_make_http_servers_noauth(self): method test_make_http_servers_withauth (line 651) | def test_make_http_servers_withauth(self): class DummyHandler (line 670) | class DummyHandler: method __init__ (line 671) | def __init__(self): method handle_request (line 674) | def handle_request(self, request): class DummyProducer (line 677) | class DummyProducer: method __init__ (line 678) | def __init__(self, *data): method more (line 681) | def more(self): FILE: supervisor/tests/test_http_client.py class ListenerTests (line 8) | class ListenerTests(unittest.TestCase): method _getTargetClass (line 9) | def _getTargetClass(self): method _makeOne (line 13) | def _makeOne(self): method test_status (line 16) | def test_status(self): method test_error (line 20) | def test_error(self): method test_response_header (line 31) | def test_response_header(self): method test_done (line 35) | def test_done(self): method test_feed (line 39) | def test_feed(self): method test_close (line 50) | def test_close(self): class HTTPHandlerTests (line 54) | class HTTPHandlerTests(unittest.TestCase): method _getTargetClass (line 55) | def _getTargetClass(self): method _makeOne (line 59) | def _makeOne(self, listener=None, username='', password=None): method _makeListener (line 70) | def _makeListener(self): method test_get_url_not_None (line 74) | def test_get_url_not_None(self): method test_get_bad_scheme (line 79) | def test_get_bad_scheme(self): method test_get_implied_port_80 (line 88) | def test_get_implied_port_80(self): method test_get_explicit_port (line 99) | def test_get_explicit_port(self): method test_get_explicit_unix_domain_socket (line 110) | def test_get_explicit_unix_domain_socket(self): method test_close (line 120) | def test_close(self): method test_header (line 132) | def test_header(self): method test_handle_error_already_handled (line 140) | def test_handle_error_already_handled(self): method test_handle_error (line 145) | def test_handle_error(self): method test_handle_connect_no_password (line 159) | def test_handle_connect_no_password(self): method test_handle_connect_with_password (line 183) | def test_handle_connect_with_password(self): method test_feed (line 211) | def test_feed(self): method test_collect_incoming_data_part_is_body (line 216) | def test_collect_incoming_data_part_is_body(self): method test_collect_incoming_data_part_is_not_body (line 224) | def test_collect_incoming_data_part_is_not_body(self): method test_found_terminator (line 232) | def test_found_terminator(self): method test_ignore (line 241) | def test_ignore(self): method test_status_line_not_startswith_http (line 247) | def test_status_line_not_startswith_http(self): method test_status_line_200 (line 252) | def test_status_line_200(self): method test_status_line_not_200 (line 261) | def test_status_line_not_200(self): method test_headers_empty_line_nonchunked (line 277) | def test_headers_empty_line_nonchunked(self): method test_headers_empty_line_chunked (line 288) | def test_headers_empty_line_chunked(self): method test_headers_nonempty_line_no_name_no_value (line 295) | def test_headers_nonempty_line_no_name_no_value(self): method test_headers_nonempty_line_transfer_encoding (line 300) | def test_headers_nonempty_line_transfer_encoding(self): method test_headers_nonempty_line_content_length (line 309) | def test_headers_nonempty_line_content_length(self): method test_headers_nonempty_line_arbitrary (line 318) | def test_headers_nonempty_line_arbitrary(self): method test_response_header (line 326) | def test_response_header(self): method test_body (line 332) | def test_body(self): method test_done (line 340) | def test_done(self): method test_chunked_size_empty_line (line 345) | def test_chunked_size_empty_line(self): method test_chunked_size_zero_size (line 352) | def test_chunked_size_zero_size(self): method test_chunked_size_nonzero_size (line 360) | def test_chunked_size_nonzero_size(self): method test_chunked_body (line 371) | def test_chunked_body(self): method test_trailer_line_not_crlf (line 384) | def test_trailer_line_not_crlf(self): method test_trailer_line_crlf (line 389) | def test_trailer_line_crlf(self): class DummyListener (line 401) | class DummyListener(object): method __init__ (line 406) | def __init__(self): method close (line 409) | def close(self, url): method error (line 412) | def error(self, url, msg): method feed (line 416) | def feed(self, url, data): method status (line 419) | def status(self, url, int): method response_header (line 423) | def response_header(self, url, name, value): method done (line 427) | def done(self, url): class DummySocket (line 430) | class DummySocket(object): method close (line 432) | def close(self): FILE: supervisor/tests/test_loggers.py class LevelTests (line 18) | class LevelTests(unittest.TestCase): method test_LOG_LEVELS_BY_NUM_doesnt_include_builtins (line 19) | def test_LOG_LEVELS_BY_NUM_doesnt_include_builtins(self): class HandlerTests (line 24) | class HandlerTests: method setUp (line 25) | def setUp(self): method tearDown (line 29) | def tearDown(self): method _makeOne (line 35) | def _makeOne(self, *arg, **kw): method _makeLogRecord (line 39) | def _makeLogRecord(self, msg): class BareHandlerTests (line 48) | class BareHandlerTests(HandlerTests, unittest.TestCase): method _getTargetClass (line 49) | def _getTargetClass(self): method test_flush_stream_flush_raises_IOError_EPIPE (line 53) | def test_flush_stream_flush_raises_IOError_EPIPE(self): method test_flush_stream_flush_raises_IOError_not_EPIPE (line 58) | def test_flush_stream_flush_raises_IOError_not_EPIPE(self): method test_close_already_closed (line 63) | def test_close_already_closed(self): method test_close_stream_fileno_above_3 (line 69) | def test_close_stream_fileno_above_3(self): method test_close_stream_fileno_below_3 (line 76) | def test_close_stream_fileno_below_3(self): method test_close_stream_handles_fileno_unsupported_operation (line 83) | def test_close_stream_handles_fileno_unsupported_operation(self): method test_close_stream_handles_fileno_ioerror (line 91) | def test_close_stream_handles_fileno_ioerror(self): method test_emit_gardenpath (line 100) | def test_emit_gardenpath(self): method test_emit_unicode_error (line 108) | def test_emit_unicode_error(self): method test_emit_other_error (line 116) | def test_emit_other_error(self): class FileHandlerTests (line 126) | class FileHandlerTests(HandlerTests, unittest.TestCase): method _getTargetClass (line 127) | def _getTargetClass(self): method test_ctor (line 131) | def test_ctor(self): method test_close (line 139) | def test_close(self): method test_close_raises (line 146) | def test_close_raises(self): method test_reopen (line 153) | def test_reopen(self): method test_reopen_raises (line 163) | def test_reopen_raises(self): method test_remove_exists (line 172) | def test_remove_exists(self): method test_remove_doesntexist (line 178) | def test_remove_doesntexist(self): method test_remove_raises (line 185) | def test_remove_raises(self): method test_emit_ascii_noerror (line 192) | def test_emit_ascii_noerror(self): method test_emit_unicode_noerror (line 200) | def test_emit_unicode_noerror(self): method test_emit_error (line 208) | def test_emit_error(self): class StdoutTests (line 230) | class StdoutTests(StdoutTestsBase): method test_ctor_with_dev_stdout (line 231) | def test_ctor_with_dev_stdout(self): class RotatingFileHandlerTests (line 240) | class RotatingFileHandlerTests(FileHandlerTests): method _getTargetClass (line 242) | def _getTargetClass(self): method test_ctor (line 246) | def test_ctor(self): method test_emit_does_rollover (line 253) | def test_emit_does_rollover(self): method test_current_logfile_removed (line 295) | def test_current_logfile_removed(self): method test_removeAndRename_destination_does_not_exist (line 312) | def test_removeAndRename_destination_does_not_exist(self): method test_removeAndRename_destination_exists (line 324) | def test_removeAndRename_destination_exists(self): method test_removeAndRename_remove_raises_ENOENT (line 336) | def test_removeAndRename_remove_raises_ENOENT(self): method test_removeAndRename_remove_raises_other_than_ENOENT (line 348) | def test_removeAndRename_remove_raises_other_than_ENOENT(self): method test_removeAndRename_rename_raises_ENOENT (line 357) | def test_removeAndRename_rename_raises_ENOENT(self): method test_removeAndRename_rename_raises_other_than_ENOENT (line 366) | def test_removeAndRename_rename_raises_other_than_ENOENT(self): method test_doRollover_maxbytes_lte_zero (line 375) | def test_doRollover_maxbytes_lte_zero(self): class BoundIOTests (line 382) | class BoundIOTests(unittest.TestCase): method _getTargetClass (line 383) | def _getTargetClass(self): method _makeOne (line 387) | def _makeOne(self, maxbytes, buf=''): method test_write_overflow (line 391) | def test_write_overflow(self): method test_getvalue (line 396) | def test_getvalue(self): method test_clear (line 400) | def test_clear(self): method test_close (line 405) | def test_close(self): class LoggerTests (line 410) | class LoggerTests(unittest.TestCase): method _getTargetClass (line 411) | def _getTargetClass(self): method _makeOne (line 415) | def _makeOne(self, level=None, handlers=None): method test_blather (line 419) | def test_blather(self): method test_trace (line 429) | def test_trace(self): method test_debug (line 439) | def test_debug(self): method test_info (line 449) | def test_info(self): method test_warn (line 459) | def test_warn(self): method test_error (line 469) | def test_error(self): method test_critical (line 479) | def test_critical(self): method test_close (line 486) | def test_close(self): method test_getvalue (line 493) | def test_getvalue(self): class MockSysLog (line 500) | class MockSysLog(mock.Mock): method __call__ (line 501) | def __call__(self, *args, **kwargs): class SyslogHandlerTests (line 510) | class SyslogHandlerTests(HandlerTests, unittest.TestCase): method setUp (line 511) | def setUp(self): method tearDown (line 514) | def tearDown(self): method _getTargetClass (line 517) | def _getTargetClass(self): method _makeOne (line 520) | def _makeOne(self): method test_emit_record_asdict_raises (line 523) | def test_emit_record_asdict_raises(self): method test_emit_ascii_noerror (line 536) | def test_emit_ascii_noerror(self): method test_close (line 546) | def test_close(self): method test_reopen (line 551) | def test_reopen(self): method test_emit_unicode_noerror (line 557) | def test_emit_unicode_noerror(self): method test_emit_unicode_witherror (line 563) | def test_emit_unicode_witherror(self): method test_emit_unicode_noerror (line 576) | def test_emit_unicode_noerror(self): method test_emit_unicode_witherror (line 581) | def test_emit_unicode_witherror(self): class DummyHandler (line 593) | class DummyHandler: method __init__ (line 595) | def __init__(self, level): method emit (line 598) | def emit(self, record): method close (line 600) | def close(self): FILE: supervisor/tests/test_options.py class OptionTests (line 29) | class OptionTests(unittest.TestCase): method _getTargetClass (line 31) | def _getTargetClass(self): method _makeOptions (line 35) | def _makeOptions(self, read_error=False): method test_add_flag_not_None_handler_not_None (line 63) | def test_add_flag_not_None_handler_not_None(self): method test_add_flag_not_None_long_false_short_false (line 68) | def test_add_flag_not_None_long_false_short_false(self): method test_add_flag_not_None_short_endswith_colon (line 79) | def test_add_flag_not_None_short_endswith_colon(self): method test_add_flag_not_None_long_endswith_equal (line 90) | def test_add_flag_not_None_long_endswith_equal(self): method test_add_inconsistent_short_long_options (line 101) | def test_add_inconsistent_short_long_options(self): method test_add_short_option_startswith_dash (line 111) | def test_add_short_option_startswith_dash(self): method test_add_short_option_too_long (line 121) | def test_add_short_option_too_long(self): method test_add_duplicate_short_option_key (line 131) | def test_add_duplicate_short_option_key(self): method test_add_long_option_startswith_dash (line 142) | def test_add_long_option_startswith_dash(self): method test_add_duplicate_long_option_key (line 152) | def test_add_duplicate_long_option_key(self): method test_searchpaths (line 163) | def test_searchpaths(self): method test_options_and_args_order (line 173) | def test_options_and_args_order(self): method test_config_reload (line 192) | def test_config_reload(self): method test_config_reload_do_usage_false (line 200) | def test_config_reload_do_usage_false(self): method test_config_reload_do_usage_true (line 205) | def test_config_reload_do_usage_true(self): method test__set (line 215) | def test__set(self): method test_missing_default_config (line 230) | def test_missing_default_config(self): method test_default_config (line 241) | def test_default_config(self): method test_help (line 248) | def test_help(self): class ClientOptionsTests (line 260) | class ClientOptionsTests(unittest.TestCase): method _getTargetClass (line 261) | def _getTargetClass(self): method _makeOne (line 265) | def _makeOne(self): method test_no_config_file (line 268) | def test_no_config_file(self): method test_options (line 284) | def test_options(self): method test_options_ignores_space_prefixed_inline_comments (line 308) | def test_options_ignores_space_prefixed_inline_comments(self): method test_options_ignores_tab_prefixed_inline_comments (line 319) | def test_options_ignores_tab_prefixed_inline_comments(self): method test_options_parses_as_nonstrict_for_py2_py3_compat (line 330) | def test_options_parses_as_nonstrict_for_py2_py3_compat(self): method test_options_with_environment_expansions (line 343) | def test_options_with_environment_expansions(self): method test_options_supervisorctl_section_expands_here (line 373) | def test_options_supervisorctl_section_expands_here(self): method test_read_config_not_found (line 395) | def test_read_config_not_found(self): method test_read_config_unreadable (line 404) | def test_read_config_unreadable(self): method test_read_config_no_supervisord_section_raises_valueerror (line 416) | def test_read_config_no_supervisord_section_raises_valueerror(self): method test_options_unixsocket_cli (line 425) | def test_options_unixsocket_cli(self): method test_options_unixsocket_configfile (line 432) | def test_options_unixsocket_configfile(self): class ServerOptionsTests (line 442) | class ServerOptionsTests(unittest.TestCase): method _getTargetClass (line 443) | def _getTargetClass(self): method _makeOne (line 447) | def _makeOne(self): method test_version (line 450) | def test_version(self): method test_options (line 457) | def test_options(self): method test_options_ignores_space_prefixed_inline_comments (line 711) | def test_options_ignores_space_prefixed_inline_comments(self): method test_options_ignores_tab_prefixed_inline_comments (line 724) | def test_options_ignores_tab_prefixed_inline_comments(self): method test_options_parses_as_nonstrict_for_py2_py3_compat (line 736) | def test_options_parses_as_nonstrict_for_py2_py3_compat(self): method test_reload (line 751) | def test_reload(self): method test_reload_clears_parse_messages (line 819) | def test_reload_clears_parse_messages(self): method test_reload_clears_parse_infos (line 839) | def test_reload_clears_parse_infos(self): method test_read_config_not_found (line 855) | def test_read_config_not_found(self): method test_read_config_unreadable (line 864) | def test_read_config_unreadable(self): method test_read_config_malformed_config_file_raises_valueerror (line 876) | def test_read_config_malformed_config_file_raises_valueerror(self): method test_read_config_logfile_with_nonexistent_dirpath (line 889) | def test_read_config_logfile_with_nonexistent_dirpath(self): method test_read_config_no_supervisord_section_raises_valueerror (line 908) | def test_read_config_no_supervisord_section_raises_valueerror(self): method test_read_config_include_with_no_files_raises_valueerror (line 917) | def test_read_config_include_with_no_files_raises_valueerror(self): method test_read_config_include_with_no_matching_files_logs_warning (line 932) | def test_read_config_include_with_no_matching_files_logs_warning(self): method test_read_config_include_reads_extra_files (line 944) | def test_read_config_include_reads_extra_files(self): method test_read_config_include_reads_files_in_sorted_order (line 979) | def test_read_config_include_reads_files_in_sorted_order(self): method test_read_config_include_extra_file_malformed (line 1014) | def test_read_config_include_extra_file_malformed(self): method test_read_config_include_expands_host_node_name (line 1045) | def test_read_config_include_expands_host_node_name(self): method test_read_config_include_expands_here (line 1074) | def test_read_config_include_expands_here(self): method test_readFile_failed (line 1087) | def test_readFile_failed(self): method test_get_pid (line 1096) | def test_get_pid(self): method test_get_signal_delegates_to_signal_receiver (line 1100) | def test_get_signal_delegates_to_signal_receiver(self): method test_check_execv_args_cant_find_command (line 1108) | def test_check_execv_args_cant_find_command(self): method test_check_execv_args_notexecutable (line 1114) | def test_check_execv_args_notexecutable(self): method test_check_execv_args_isdir (line 1121) | def test_check_execv_args_isdir(self): method test_realize_positional_args_not_supported (line 1128) | def test_realize_positional_args_not_supported(self): method test_realize_getopt_error (line 1143) | def test_realize_getopt_error(self): method test_realize_prefers_identifier_from_args (line 1156) | def test_realize_prefers_identifier_from_args(self): method test_options_afunix (line 1166) | def test_options_afunix(self): method test_options_afunix_chxxx_values_valid (line 1190) | def test_options_afunix_chxxx_values_valid(self): method test_options_afunix_chmod_bad (line 1214) | def test_options_afunix_chmod_bad(self): method test_options_afunix_chown_bad (line 1231) | def test_options_afunix_chown_bad(self): method test_options_afunix_no_file (line 1248) | def test_options_afunix_no_file(self): method test_options_afunix_username_without_password (line 1264) | def test_options_afunix_username_without_password(self): method test_options_afunix_password_without_username (line 1286) | def test_options_afunix_password_without_username(self): method test_options_afunix_file_expands_here (line 1308) | def test_options_afunix_file_expands_here(self): method test_options_afinet_username_without_password (line 1332) | def test_options_afinet_username_without_password(self): method test_options_afinet_password_without_username (line 1354) | def test_options_afinet_password_without_username(self): method test_options_afinet_no_port (line 1374) | def test_options_afinet_no_port(self): method test_cleanup_afunix_unlink (line 1390) | def test_cleanup_afunix_unlink(self): method test_cleanup_afunix_nounlink (line 1404) | def test_cleanup_afunix_nounlink(self): method test_cleanup_afunix_ignores_oserror_enoent (line 1424) | def test_cleanup_afunix_ignores_oserror_enoent(self): method test_cleanup_removes_pidfile (line 1447) | def test_cleanup_removes_pidfile(self): method test_cleanup_pidfile_ignores_oserror_enoent (line 1465) | def test_cleanup_pidfile_ignores_oserror_enoent(self): method test_cleanup_does_not_remove_pidfile_from_another_supervisord (line 1471) | def test_cleanup_does_not_remove_pidfile_from_another_supervisord(self): method test_cleanup_closes_poller (line 1491) | def test_cleanup_closes_poller(self): method test_cleanup_fds_closes_5_upto_minfds (line 1511) | def test_cleanup_fds_closes_5_upto_minfds(self): method test_close_httpservers (line 1520) | def test_close_httpservers(self): method test_close_logger (line 1531) | def test_close_logger(self): method test_close_parent_pipes (line 1538) | def test_close_parent_pipes(self): method test_close_parent_pipes_ignores_fd_of_none (line 1549) | def test_close_parent_pipes_ignores_fd_of_none(self): method test_close_child_pipes (line 1559) | def test_close_child_pipes(self): method test_close_child_pipes_ignores_fd_of_none (line 1570) | def test_close_child_pipes_ignores_fd_of_none(self): method test_reopenlogs (line 1580) | def test_reopenlogs(self): method test_write_pidfile_ok (line 1589) | def test_write_pidfile_ok(self): method test_write_pidfile_fail (line 1612) | def test_write_pidfile_fail(self): method test_close_fd (line 1622) | def test_close_fd(self): method test_close_fd_ignores_oserror (line 1633) | def test_close_fd_ignores_oserror(self): method test_processes_from_section (line 1637) | def test_processes_from_section(self): method test_processes_from_section_environment_with_escaped_chars (line 1687) | def test_processes_from_section_environment_with_escaped_chars(self): method test_processes_from_section_host_node_name_expansion (line 1701) | def test_processes_from_section_host_node_name_expansion(self): method test_processes_from_section_process_num_expansion (line 1714) | def test_processes_from_section_process_num_expansion(self): method test_processes_from_section_numprocs_expansion (line 1741) | def test_processes_from_section_numprocs_expansion(self): method test_processes_from_section_expands_directory (line 1758) | def test_processes_from_section_expands_directory(self): method test_processes_from_section_environment_variables_expansion (line 1772) | def test_processes_from_section_environment_variables_expansion(self): method test_processes_from_section_expands_env_in_environment (line 1785) | def test_processes_from_section_expands_env_in_environment(self): method test_processes_from_section_redirect_stderr_with_filename (line 1799) | def test_processes_from_section_redirect_stderr_with_filename(self): method test_processes_from_section_rewrites_stdout_logfile_of_syslog (line 1816) | def test_processes_from_section_rewrites_stdout_logfile_of_syslog(self): method test_processes_from_section_rewrites_stderr_logfile_of_syslog (line 1834) | def test_processes_from_section_rewrites_stderr_logfile_of_syslog(self): method test_processes_from_section_redirect_stderr_with_auto (line 1852) | def test_processes_from_section_redirect_stderr_with_auto(self): method test_processes_from_section_accepts_number_for_stopsignal (line 1867) | def test_processes_from_section_accepts_number_for_stopsignal(self): method test_options_with_environment_expansions (line 1881) | def test_options_with_environment_expansions(self): method test_options_supervisord_section_expands_here (line 2015) | def test_options_supervisord_section_expands_here(self): method test_options_program_section_expands_env_from_supervisord_sect (line 2042) | def test_options_program_section_expands_env_from_supervisord_sect(self): method test_options_program_section_expands_env_from_program_sect (line 2067) | def test_options_program_section_expands_env_from_program_sect(self): method test_options_program_section_expands_here (line 2093) | def test_options_program_section_expands_here(self): method test_options_eventlistener_section_expands_here (line 2132) | def test_options_eventlistener_section_expands_here(self): method test_options_expands_combined_expansions (line 2172) | def test_options_expands_combined_expansions(self): method test_options_error_handler_shows_main_filename (line 2209) | def test_options_error_handler_shows_main_filename(self): method test_options_error_handler_shows_included_filename (line 2235) | def test_options_error_handler_shows_included_filename(self): method test_processes_from_section_bad_program_name_spaces (line 2271) | def test_processes_from_section_bad_program_name_spaces(self): method test_processes_from_section_bad_program_name_colons (line 2282) | def test_processes_from_section_bad_program_name_colons(self): method test_processes_from_section_no_procnum_in_processname (line 2293) | def test_processes_from_section_no_procnum_in_processname(self): method test_processes_from_section_no_command (line 2306) | def test_processes_from_section_no_command(self): method test_processes_from_section_missing_replacement_in_process_name (line 2321) | def test_processes_from_section_missing_replacement_in_process_name(se... method test_processes_from_section_bad_expression_in_process_name (line 2334) | def test_processes_from_section_bad_expression_in_process_name(self): method test_processes_from_section_bad_chars_in_process_name (line 2347) | def test_processes_from_section_bad_chars_in_process_name(self): method test_processes_from_section_stopasgroup_implies_killasgroup (line 2360) | def test_processes_from_section_stopasgroup_implies_killasgroup(self): method test_processes_from_section_killasgroup_mismatch_w_stopasgroup (line 2377) | def test_processes_from_section_killasgroup_mismatch_w_stopasgroup(self): method test_processes_from_section_unexpected_end_of_key_value_pairs (line 2392) | def test_processes_from_section_unexpected_end_of_key_value_pairs(self): method test_processes_from_section_shows_conf_filename_on_valueerror (line 2413) | def test_processes_from_section_shows_conf_filename_on_valueerror(self): method test_processes_from_section_autolog_without_rollover (line 2434) | def test_processes_from_section_autolog_without_rollover(self): method test_homogeneous_process_groups_from_parser (line 2458) | def test_homogeneous_process_groups_from_parser(self): method test_event_listener_pools_from_parser (line 2477) | def test_event_listener_pools_from_parser(self): method test_event_listener_pools_from_parser_with_environment_expansions (line 2523) | def test_event_listener_pools_from_parser_with_environment_expansions(... method test_event_listener_pool_disallows_buffer_size_zero (line 2575) | def test_event_listener_pool_disallows_buffer_size_zero(self): method test_event_listener_pool_disallows_redirect_stderr (line 2593) | def test_event_listener_pool_disallows_redirect_stderr(self): method test_event_listener_pool_with_event_result_handler (line 2612) | def test_event_listener_pool_with_event_result_handler(self): method test_event_listener_pool_result_handler_unimportable_ImportError (line 2630) | def test_event_listener_pool_result_handler_unimportable_ImportError(s... method test_event_listener_pool_result_handler_unimportable_AttributeError (line 2658) | def test_event_listener_pool_result_handler_unimportable_AttributeErro... method test_event_listener_pool_noeventsline (line 2686) | def test_event_listener_pool_noeventsline(self): method test_event_listener_pool_unknown_eventtype (line 2700) | def test_event_listener_pool_unknown_eventtype(self): method test_fcgi_programs_from_parser (line 2715) | def test_fcgi_programs_from_parser(self): method test_fcgi_programs_from_parser_with_environment_expansions (line 2804) | def test_fcgi_programs_from_parser_with_environment_expansions(self): method test_fcgi_program_no_socket (line 2868) | def test_fcgi_program_no_socket(self): method test_fcgi_program_unknown_socket_protocol (line 2882) | def test_fcgi_program_unknown_socket_protocol(self): method test_fcgi_program_rel_unix_sock_path (line 2897) | def test_fcgi_program_rel_unix_sock_path(self): method test_fcgi_program_bad_tcp_sock_format (line 2912) | def test_fcgi_program_bad_tcp_sock_format(self): method test_fcgi_program_bad_expansion_proc_num (line 2927) | def test_fcgi_program_bad_expansion_proc_num(self): method test_fcgi_program_socket_owner_set_for_tcp (line 2942) | def test_fcgi_program_socket_owner_set_for_tcp(self): method test_fcgi_program_socket_mode_set_for_tcp (line 2955) | def test_fcgi_program_socket_mode_set_for_tcp(self): method test_fcgi_program_bad_socket_owner (line 2968) | def test_fcgi_program_bad_socket_owner(self): method test_fcgi_program_bad_socket_mode (line 2981) | def test_fcgi_program_bad_socket_mode(self): method test_fcgi_program_bad_socket_backlog (line 2994) | def test_fcgi_program_bad_socket_backlog(self): method test_heterogeneous_process_groups_from_parser (line 3007) | def test_heterogeneous_process_groups_from_parser(self): method test_mixed_process_groups_from_parser1 (line 3030) | def test_mixed_process_groups_from_parser1(self): method test_mixed_process_groups_from_parser2 (line 3065) | def test_mixed_process_groups_from_parser2(self): method test_mixed_process_groups_from_parser3 (line 3095) | def test_mixed_process_groups_from_parser3(self): method test_ambiguous_process_in_heterogeneous_group (line 3131) | def test_ambiguous_process_in_heterogeneous_group(self): method test_unknown_program_in_heterogeneous_group (line 3148) | def test_unknown_program_in_heterogeneous_group(self): method test_rpcinterfaces_from_parser (line 3163) | def test_rpcinterfaces_from_parser(self): method test_rpcinterfaces_from_parser_factory_expansions (line 3183) | def test_rpcinterfaces_from_parser_factory_expansions(self): method test_rpcinterfaces_from_parser_factory_missing (line 3203) | def test_rpcinterfaces_from_parser_factory_missing(self): method test_rpcinterfaces_from_parser_factory_not_importable (line 3221) | def test_rpcinterfaces_from_parser_factory_not_importable(self): method test_clear_autochildlogdir (line 3247) | def test_clear_autochildlogdir(self): method test_clear_autochildlogdir_listdir_oserror (line 3268) | def test_clear_autochildlogdir_listdir_oserror(self): method test_clear_autochildlogdir_unlink_oserror (line 3275) | def test_clear_autochildlogdir_unlink_oserror(self): method test_openhttpservers_reports_friendly_usage_when_eaddrinuse (line 3291) | def test_openhttpservers_reports_friendly_usage_when_eaddrinuse(self): method test_openhttpservers_reports_socket_error_with_errno (line 3309) | def test_openhttpservers_reports_socket_error_with_errno(self): method test_openhttpservers_reports_other_socket_errors (line 3328) | def test_openhttpservers_reports_other_socket_errors(self): method test_openhttpservers_reports_value_errors (line 3347) | def test_openhttpservers_reports_value_errors(self): method test_openhttpservers_does_not_catch_other_exception_types (line 3365) | def test_openhttpservers_does_not_catch_other_exception_types(self): method test_drop_privileges_user_none (line 3378) | def test_drop_privileges_user_none(self): method test_drop_privileges_nonroot_same_user (line 3385) | def test_drop_privileges_nonroot_same_user(self): method test_drop_privileges_nonroot_different_user (line 3392) | def test_drop_privileges_nonroot_different_user(self): method test_daemonize_notifies_poller_before_and_after_fork (line 3397) | def test_daemonize_notifies_poller_before_and_after_fork(self): method test_options_environment_of_supervisord_with_escaped_chars (line 3405) | def test_options_environment_of_supervisord_with_escaped_chars(self): class ProcessConfigTests (line 3418) | class ProcessConfigTests(unittest.TestCase): method _getTargetClass (line 3419) | def _getTargetClass(self): method _makeOne (line 3423) | def _makeOne(self, *arg, **kw): method test_get_path_env_is_None_delegates_to_options (line 3442) | def test_get_path_env_is_None_delegates_to_options(self): method test_get_path_env_dict_with_no_PATH_delegates_to_options (line 3447) | def test_get_path_env_dict_with_no_PATH_delegates_to_options(self): method test_get_path_env_dict_with_PATH_uses_it (line 3452) | def test_get_path_env_dict_with_PATH_uses_it(self): method test_create_autochildlogs (line 3458) | def test_create_autochildlogs(self): method test_make_process (line 3468) | def test_make_process(self): method test_make_process_with_group (line 3476) | def test_make_process_with_group(self): method test_make_dispatchers_stderr_not_redirected (line 3484) | def test_make_dispatchers_stderr_not_redirected(self): method test_make_dispatchers_stderr_redirected (line 3505) | def test_make_dispatchers_stderr_redirected(self): class EventListenerConfigTests (line 3516) | class EventListenerConfigTests(unittest.TestCase): method _getTargetClass (line 3517) | def _getTargetClass(self): method _makeOne (line 3521) | def _makeOne(self, *arg, **kw): method test_make_dispatchers (line 3540) | def test_make_dispatchers(self): class FastCGIProcessConfigTests (line 3564) | class FastCGIProcessConfigTests(unittest.TestCase): method _getTargetClass (line 3565) | def _getTargetClass(self): method _makeOne (line 3569) | def _makeOne(self, *arg, **kw): method test_make_process (line 3588) | def test_make_process(self): method test_make_process_with_group (line 3593) | def test_make_process_with_group(self): method test_make_dispatchers (line 3601) | def test_make_dispatchers(self): class ProcessGroupConfigTests (line 3624) | class ProcessGroupConfigTests(unittest.TestCase): method _getTargetClass (line 3625) | def _getTargetClass(self): method _makeOne (line 3629) | def _makeOne(self, options, name, priority, pconfigs): method test_ctor (line 3632) | def test_ctor(self): method test_after_setuid (line 3640) | def test_after_setuid(self): method test_make_group (line 3647) | def test_make_group(self): class EventListenerPoolConfigTests (line 3655) | class EventListenerPoolConfigTests(unittest.TestCase): method _getTargetClass (line 3656) | def _getTargetClass(self): method _makeOne (line 3660) | def _makeOne(self, options, name, priority, process_configs, buffer_size, method test_after_setuid (line 3666) | def test_after_setuid(self): method test_make_group (line 3673) | def test_make_group(self): class FastCGIGroupConfigTests (line 3681) | class FastCGIGroupConfigTests(unittest.TestCase): method _getTargetClass (line 3682) | def _getTargetClass(self): method _makeOne (line 3686) | def _makeOne(self, *args, **kw): method test_ctor (line 3689) | def test_ctor(self): method test_same_sockets_are_equal (line 3699) | def test_same_sockets_are_equal(self): method test_diff_sockets_are_not_equal (line 3710) | def test_diff_sockets_are_not_equal(self): method test_make_group (line 3721) | def test_make_group(self): class SignalReceiverTests (line 3729) | class SignalReceiverTests(unittest.TestCase): method test_returns_None_initially (line 3730) | def test_returns_None_initially(self): method test_returns_signals_in_order_received (line 3735) | def test_returns_signals_in_order_received(self): method test_does_not_queue_duplicate_signals (line 3744) | def test_does_not_queue_duplicate_signals(self): method test_queues_again_after_being_emptied (line 3752) | def test_queues_again_after_being_emptied(self): class UnhosedConfigParserTests (line 3762) | class UnhosedConfigParserTests(unittest.TestCase): method _getTargetClass (line 3763) | def _getTargetClass(self): method _makeOne (line 3767) | def _makeOne(self, *args, **kw): method test_saneget_no_default (line 3770) | def test_saneget_no_default(self): method test_saneget_with_default (line 3777) | def test_saneget_with_default(self): method test_saneget_with_default_and_expand (line 3783) | def test_saneget_with_default_and_expand(self): method test_saneget_with_default_no_expand (line 3790) | def test_saneget_with_default_no_expand(self): method test_saneget_no_default_no_expand (line 3798) | def test_saneget_no_default_no_expand(self): method test_saneget_expands_instance_expansions (line 3804) | def test_saneget_expands_instance_expansions(self): method test_saneget_expands_arg_expansions (line 3811) | def test_saneget_expands_arg_expansions(self): method test_getdefault_does_saneget_with_mysection (line 3819) | def test_getdefault_does_saneget_with_mysection(self): method test_read_filenames_as_string (line 3824) | def test_read_filenames_as_string(self): method test_read_filenames_as_list (line 3832) | def test_read_filenames_as_list(self): method test_read_returns_ok_filenames_like_rawconfigparser (line 3840) | def test_read_returns_ok_filenames_like_rawconfigparser(self): method test_read_section_to_file_initially_empty (line 3849) | def test_read_section_to_file_initially_empty(self): method test_read_section_to_file_read_one_file (line 3853) | def test_read_section_to_file_read_one_file(self): method test_read_section_to_file_read_multiple_files (line 3861) | def test_read_section_to_file_read_multiple_files(self): class UtilFunctionsTests (line 3873) | class UtilFunctionsTests(unittest.TestCase): method test_make_namespec (line 3874) | def test_make_namespec(self): method test_split_namespec (line 3879) | def test_split_namespec(self): FILE: supervisor/tests/test_pidproxy.py class PidProxyTests (line 4) | class PidProxyTests(unittest.TestCase): method _getTargetClass (line 5) | def _getTargetClass(self): method _makeOne (line 9) | def _makeOne(self, *arg, **kw): method test_ctor_parses_args (line 12) | def test_ctor_parses_args(self): FILE: supervisor/tests/test_poller.py class BasePollerTests (line 15) | class BasePollerTests(unittest.TestCase): method _makeOne (line 16) | def _makeOne(self, options): method test_register_readable (line 20) | def test_register_readable(self): method test_register_writable (line 24) | def test_register_writable(self): method test_unregister_readable (line 28) | def test_unregister_readable(self): method test_unregister_writable (line 32) | def test_unregister_writable(self): method test_poll (line 36) | def test_poll(self): method test_before_daemonize (line 40) | def test_before_daemonize(self): method test_after_daemonize (line 44) | def test_after_daemonize(self): class SelectPollerTests (line 48) | class SelectPollerTests(unittest.TestCase): method _makeOne (line 50) | def _makeOne(self, options): method test_register_readable (line 53) | def test_register_readable(self): method test_register_writable (line 59) | def test_register_writable(self): method test_unregister_readable (line 65) | def test_unregister_readable(self): method test_unregister_writable (line 77) | def test_unregister_writable(self): method test_poll_returns_readables_and_writables (line 89) | def test_poll_returns_readables_and_writables(self): method test_poll_ignores_eintr (line 101) | def test_poll_ignores_eintr(self): method test_poll_ignores_ebadf (line 110) | def test_poll_ignores_ebadf(self): method test_poll_uncaught_exception (line 121) | def test_poll_uncaught_exception(self): class KQueuePollerTests (line 134) | class KQueuePollerTests(KQueuePollerTestsBase): method _makeOne (line 136) | def _makeOne(self, options): method test_register_readable (line 139) | def test_register_readable(self): method test_register_writable (line 148) | def test_register_writable(self): method test_unregister_readable (line 157) | def test_unregister_readable(self): method test_unregister_writable (line 173) | def test_unregister_writable(self): method test_poll_returns_readables_and_writables (line 189) | def test_poll_returns_readables_and_writables(self): method test_poll_ignores_eintr (line 202) | def test_poll_ignores_eintr(self): method test_register_readable_and_writable_ignores_ebadf (line 211) | def test_register_readable_and_writable_ignores_ebadf(self): method test_register_uncaught_exception (line 223) | def test_register_uncaught_exception(self): method test_poll_uncaught_exception (line 230) | def test_poll_uncaught_exception(self): method test_before_daemonize_closes_kqueue (line 238) | def test_before_daemonize_closes_kqueue(self): method test_after_daemonize_restores_kqueue (line 247) | def test_after_daemonize_restores_kqueue(self): method test_close_closes_kqueue (line 259) | def test_close_closes_kqueue(self): method assertReadEventAdded (line 268) | def assertReadEventAdded(self, kevent, fd): method assertWriteEventAdded (line 271) | def assertWriteEventAdded(self, kevent, fd): method assertReadEventDeleted (line 274) | def assertReadEventDeleted(self, kevent, fd): method assertWriteEventDeleted (line 277) | def assertWriteEventDeleted(self, kevent, fd): method assertKevent (line 280) | def assertKevent(self, kevent, ident, filter, flags): class PollerPollTests (line 290) | class PollerPollTests(PollerPollTestsBase): method _makeOne (line 292) | def _makeOne(self, options): method test_register_readable (line 295) | def test_register_readable(self): method test_register_writable (line 303) | def test_register_writable(self): method test_poll_returns_readables_and_writables (line 310) | def test_poll_returns_readables_and_writables(self): method test_poll_ignores_eintr (line 325) | def test_poll_ignores_eintr(self): method test_poll_uncaught_exception (line 334) | def test_poll_uncaught_exception(self): method test_poll_ignores_and_unregisters_closed_fd (line 342) | def test_poll_ignores_and_unregisters_closed_fd(self): class DummySelect (line 353) | class DummySelect(object): method __init__ (line 357) | def __init__(self, result=None, error=None): method select (line 363) | def select(self, r, w, x, timeout): class DummySelectPoll (line 368) | class DummySelectPoll(object): method __init__ (line 372) | def __init__(self, result=None, error=None): method register (line 379) | def register(self, fd, eventmask): method unregister (line 387) | def unregister(self, fd): method poll (line 390) | def poll(self, timeout): class DummyKQueue (line 396) | class DummyKQueue(object): method __init__ (line 400) | def __init__(self, result=None, raise_errno_poll=None, raise_errno_reg... method control (line 407) | def control(self, kevents, max_events, timeout=None): method raise_error (line 417) | def raise_error(self, err): method build_result (line 423) | def build_result(self): method assert_max_events_on_poll (line 426) | def assert_max_events_on_poll(self, max_events): method assert_max_events_on_register (line 431) | def assert_max_events_on_register(self, max_events): class FakeKEvent (line 435) | class FakeKEvent(object): method __init__ (line 436) | def __init__(self, ident, filter): FILE: supervisor/tests/test_process.py class SubprocessTests (line 26) | class SubprocessTests(unittest.TestCase): method _getTargetClass (line 27) | def _getTargetClass(self): method _makeOne (line 31) | def _makeOne(self, *arg, **kw): method tearDown (line 34) | def tearDown(self): method test_getProcessStateDescription (line 38) | def test_getProcessStateDescription(self): method test_ctor (line 45) | def test_ctor(self): method test_repr (line 65) | def test_repr(self): method test_reopenlogs (line 73) | def test_reopenlogs(self): method test_removelogs (line 83) | def test_removelogs(self): method test_drain (line 93) | def test_drain(self): method test_get_execv_args_bad_command_extraquote (line 105) | def test_get_execv_args_bad_command_extraquote(self): method test_get_execv_args_bad_command_empty (line 111) | def test_get_execv_args_bad_command_empty(self): method test_get_execv_args_bad_command_whitespaceonly (line 117) | def test_get_execv_args_bad_command_whitespaceonly(self): method test_get_execv_args_abs_missing (line 123) | def test_get_execv_args_abs_missing(self): method test_get_execv_args_abs_withquotes_missing (line 130) | def test_get_execv_args_abs_withquotes_missing(self): method test_get_execv_args_rel_missing (line 137) | def test_get_execv_args_rel_missing(self): method test_get_execv_args_rel_withquotes_missing (line 144) | def test_get_execv_args_rel_withquotes_missing(self): method test_get_execv_args_abs (line 151) | def test_get_execv_args_abs(self): method test_get_execv_args_rel (line 161) | def test_get_execv_args_rel(self): method test_get_execv_args_rel_searches_using_pconfig_path (line 171) | def test_get_execv_args_rel_searches_using_pconfig_path(self): method test_record_spawnerr (line 183) | def test_record_spawnerr(self): method test_spawn_already_running (line 191) | def test_spawn_already_running(self): method test_spawn_fail_check_execv_args (line 203) | def test_spawn_fail_check_execv_args(self): method test_spawn_fail_make_pipes_emfile (line 226) | def test_spawn_fail_make_pipes_emfile(self): method test_spawn_fail_make_pipes_other (line 252) | def test_spawn_fail_make_pipes_other(self): method test_spawn_fail_make_dispatchers_eisdir (line 277) | def test_spawn_fail_make_dispatchers_eisdir(self): method test_spawn_fork_fail_eagain (line 304) | def test_spawn_fork_fail_eagain(self): method test_spawn_fork_fail_other (line 331) | def test_spawn_fork_fail_other(self): method test_spawn_as_child_setuid_ok (line 358) | def test_spawn_as_child_setuid_ok(self): method test_spawn_as_child_setuid_fail (line 380) | def test_spawn_as_child_setuid_fail(self): method test_spawn_as_child_cwd_ok (line 400) | def test_spawn_as_child_cwd_ok(self): method test_spawn_as_child_sets_umask (line 423) | def test_spawn_as_child_sets_umask(self): method test_spawn_as_child_cwd_fail (line 440) | def test_spawn_as_child_cwd_fail(self): method test_spawn_as_child_execv_fail_oserror (line 463) | def test_spawn_as_child_execv_fail_oserror(self): method test_spawn_as_child_execv_fail_runtime_error (line 483) | def test_spawn_as_child_execv_fail_runtime_error(self): method test_spawn_as_child_uses_pconfig_environment (line 503) | def test_spawn_as_child_uses_pconfig_environment(self): method test_spawn_as_child_environment_supervisor_envvars (line 514) | def test_spawn_as_child_environment_supervisor_envvars(self): method test_spawn_as_child_stderr_redirected (line 536) | def test_spawn_as_child_stderr_redirected(self): method test_spawn_as_parent (line 559) | def test_spawn_as_parent(self): method test_spawn_redirect_stderr (line 581) | def test_spawn_redirect_stderr(self): method test_write (line 595) | def test_write(self): method test_write_dispatcher_closed (line 610) | def test_write_dispatcher_closed(self): method test_write_stdin_fd_none (line 623) | def test_write_stdin_fd_none(self): method test_write_dispatcher_flush_raises_epipe (line 640) | def test_write_dispatcher_flush_raises_epipe(self): method _dont_test_spawn_and_kill (line 654) | def _dont_test_spawn_and_kill(self): method test_stop (line 697) | def test_stop(self): method test_stop_not_in_stoppable_state_error (line 716) | def test_stop_not_in_stoppable_state_error(self): method test_stop_report_logs_nothing_if_not_stopping_state (line 732) | def test_stop_report_logs_nothing_if_not_stopping_state(self): method test_stop_report_logs_throttled_by_laststopreport (line 744) | def test_stop_report_logs_throttled_by_laststopreport(self): method test_stop_report_laststopreport_in_future (line 761) | def test_stop_report_laststopreport_in_future(self): method test_give_up (line 795) | def test_give_up(self): method test_kill_nopid (line 813) | def test_kill_nopid(self): method test_kill_from_starting (line 822) | def test_kill_from_starting(self): method test_kill_from_running (line 841) | def test_kill_from_running(self): method test_kill_from_running_error (line 860) | def test_kill_from_running_error(self): method test_kill_from_running_error_ESRCH (line 887) | def test_kill_from_running_error_ESRCH(self): method test_kill_from_stopping (line 912) | def test_kill_from_stopping(self): method test_kill_from_backoff (line 929) | def test_kill_from_backoff(self): method test_kill_from_stopping_w_killasgroup (line 945) | def test_kill_from_stopping_w_killasgroup(self): method test_stopasgroup (line 962) | def test_stopasgroup(self): method test_signal_from_stopped (line 983) | def test_signal_from_stopped(self): method test_signal_from_running (line 994) | def test_signal_from_running(self): method test_signal_from_running_error_ESRCH (line 1007) | def test_signal_from_running_error_ESRCH(self): method test_signal_from_running_error (line 1030) | def test_signal_from_running_error(self): method test_finish_stopping_state (line 1055) | def test_finish_stopping_state(self): method test_finish_running_state_exit_expected (line 1086) | def test_finish_running_state_exit_expected(self): method test_finish_starting_state_laststart_in_future (line 1118) | def test_finish_starting_state_laststart_in_future(self): method test_finish_starting_state_exited_too_quickly (line 1159) | def test_finish_starting_state_exited_too_quickly(self): method test_finish_running_state_exited_too_quickly_due_to_clock_rollback (line 1193) | def test_finish_running_state_exited_too_quickly_due_to_clock_rollback... method test_finish_running_state_laststart_in_future (line 1226) | def test_finish_running_state_laststart_in_future(self): method test_finish_with_current_event_sends_rejected (line 1263) | def test_finish_with_current_event_sends_rejected(self): method test_set_uid_no_uid (line 1286) | def test_set_uid_no_uid(self): method test_set_uid (line 1293) | def test_set_uid(self): method test_cmp_bypriority (line 1301) | def test_cmp_bypriority(self): method test_transition_stopped_to_starting_supervisor_stopping (line 1323) | def test_transition_stopped_to_starting_supervisor_stopping(self): method test_transition_stopped_to_starting_supervisor_running (line 1340) | def test_transition_stopped_to_starting_supervisor_running(self): method test_transition_exited_to_starting_supervisor_stopping (line 1362) | def test_transition_exited_to_starting_supervisor_stopping(self): method test_transition_exited_to_starting_uncond_supervisor_running (line 1383) | def test_transition_exited_to_starting_uncond_supervisor_running(self): method test_transition_exited_to_starting_condit_supervisor_running (line 1406) | def test_transition_exited_to_starting_condit_supervisor_running(self): method test_transition_exited_to_starting_condit_fls_supervisor_running (line 1430) | def test_transition_exited_to_starting_condit_fls_supervisor_running(s... method test_transition_backoff_to_starting_supervisor_stopping (line 1448) | def test_transition_backoff_to_starting_supervisor_stopping(self): method test_transition_backoff_to_starting_supervisor_running (line 1466) | def test_transition_backoff_to_starting_supervisor_running(self): method test_transition_backoff_to_starting_supervisor_running_notyet (line 1490) | def test_transition_backoff_to_starting_supervisor_running_notyet(self): method test_transition_starting_to_running (line 1508) | def test_transition_starting_to_running(self): method test_transition_starting_to_running_laststart_in_future (line 1544) | def test_transition_starting_to_running_laststart_in_future(self): method test_transition_backoff_to_starting_delay_in_future (line 1600) | def test_transition_backoff_to_starting_delay_in_future(self): method test_transition_backoff_to_fatal (line 1639) | def test_transition_backoff_to_fatal(self): method test_transition_stops_unkillable_notyet (line 1674) | def test_transition_stops_unkillable_notyet(self): method test_transition_stops_unkillable (line 1690) | def test_transition_stops_unkillable(self): method test_change_state_doesnt_notify_if_no_state_change (line 1713) | def test_change_state_doesnt_notify_if_no_state_change(self): method test_change_state_sets_backoff_and_delay (line 1720) | def test_change_state_sets_backoff_and_delay(self): class FastCGISubprocessTests (line 1730) | class FastCGISubprocessTests(unittest.TestCase): method _getTargetClass (line 1731) | def _getTargetClass(self): method _makeOne (line 1735) | def _makeOne(self, *arg, **kw): method tearDown (line 1738) | def tearDown(self): method test_no_group (line 1742) | def test_no_group(self): method test_no_socket_manager (line 1749) | def test_no_socket_manager(self): method test_prepare_child_fds (line 1757) | def test_prepare_child_fds(self): method test_prepare_child_fds_stderr_redirected (line 1774) | def test_prepare_child_fds_stderr_redirected(self): method test_before_spawn_gets_socket_ref (line 1790) | def test_before_spawn_gets_socket_ref(self): method test_after_finish_removes_socket_ref (line 1802) | def test_after_finish_removes_socket_ref(self): method test_finish_override (line 1812) | def test_finish_override(self): method test_spawn_override_success (line 1834) | def test_spawn_override_success(self): method test_spawn_error (line 1850) | def test_spawn_error(self): class ProcessGroupBaseTests (line 1864) | class ProcessGroupBaseTests(unittest.TestCase): method _getTargetClass (line 1865) | def _getTargetClass(self): method _makeOne (line 1869) | def _makeOne(self, *args, **kw): method test_get_unstopped_processes (line 1872) | def test_get_unstopped_processes(self): method test_before_remove (line 1883) | def test_before_remove(self): method test_stop_all (line 1893) | def test_stop_all(self): method test_get_dispatchers (line 1923) | def test_get_dispatchers(self): method test_reopenlogs (line 1938) | def test_reopenlogs(self): method test_removelogs (line 1949) | def test_removelogs(self): method test_ordering_and_comparison (line 1960) | def test_ordering_and_comparison(self): class ProcessGroupTests (line 1982) | class ProcessGroupTests(ProcessGroupBaseTests): method _getTargetClass (line 1983) | def _getTargetClass(self): method test_repr (line 1987) | def test_repr(self): method test_transition (line 1995) | def test_transition(self): class FastCGIProcessGroupTests (line 2006) | class FastCGIProcessGroupTests(unittest.TestCase): method _getTargetClass (line 2007) | def _getTargetClass(self): method _makeOne (line 2011) | def _makeOne(self, config, **kwargs): method test___init__without_socket_error (line 2015) | def test___init__without_socket_error(self): method test___init__with_socket_error (line 2025) | def test___init__with_socket_error(self): class EventListenerPoolTests (line 2040) | class EventListenerPoolTests(ProcessGroupBaseTests): method setUp (line 2041) | def setUp(self): method tearDown (line 2045) | def tearDown(self): method _getTargetClass (line 2049) | def _getTargetClass(self): method test_ctor (line 2053) | def test_ctor(self): method test_before_remove_unsubscribes_from_events (line 2068) | def test_before_remove_unsubscribes_from_events(self): method test__eventEnvelope (line 2080) | def test__eventEnvelope(self): method test_handle_rejected_no_overflow (line 2100) | def test_handle_rejected_no_overflow(self): method test_handle_rejected_event_buffer_overflowed (line 2119) | def test_handle_rejected_event_buffer_overflowed(self): method test_dispatch_pipe_error (line 2147) | def test_dispatch_pipe_error(self): method test__acceptEvent_attaches_pool_serial_and_serial (line 2169) | def test__acceptEvent_attaches_pool_serial_and_serial(self): method test_repr (line 2184) | def test_repr(self): method test_transition_nobody_ready (line 2192) | def test_transition_nobody_ready(self): method test_transition_event_proc_not_running (line 2209) | def test_transition_event_proc_not_running(self): method test_transition_event_proc_running (line 2228) | def test_transition_event_proc_running(self): method test_transition_event_proc_running_with_dispatch_throttle_notyet (line 2251) | def test_transition_event_proc_running_with_dispatch_throttle_notyet(s... method test_transition_event_proc_running_with_dispatch_throttle_ready (line 2272) | def test_transition_event_proc_running_with_dispatch_throttle_ready(se... method test_transition_event_proc_running_with_dispatch_throttle_last_dispatch_in_future (line 2297) | def test_transition_event_proc_running_with_dispatch_throttle_last_dis... method test__dispatchEvent_notready (line 2323) | def test__dispatchEvent_notready(self): method test__dispatchEvent_proc_write_raises_non_EPIPE_OSError (line 2335) | def test__dispatchEvent_proc_write_raises_non_EPIPE_OSError(self): class test_new_serial (line 2355) | class test_new_serial(unittest.TestCase): method _callFUT (line 2356) | def _callFUT(self, inst): method test_inst_serial_is_maxint (line 2360) | def test_inst_serial_is_maxint(self): method test_inst_serial_is_not_maxint (line 2370) | def test_inst_serial_is_not_maxint(self): FILE: supervisor/tests/test_rpcinterfaces.py class TestBase (line 22) | class TestBase(unittest.TestCase): method setUp (line 23) | def setUp(self): method tearDown (line 26) | def tearDown(self): method _assertRPCError (line 29) | def _assertRPCError(self, code, callable, *args, **kw): class MainXMLRPCInterfaceTests (line 38) | class MainXMLRPCInterfaceTests(TestBase): method _getTargetClass (line 40) | def _getTargetClass(self): method _makeOne (line 44) | def _makeOne(self, *args, **kw): method test_ctor (line 47) | def test_ctor(self): method test_traverse (line 51) | def test_traverse(self): class SupervisorNamespaceXMLRPCInterfaceTests (line 66) | class SupervisorNamespaceXMLRPCInterfaceTests(TestBase): method _getTargetClass (line 67) | def _getTargetClass(self): method _makeOne (line 71) | def _makeOne(self, *args, **kw): method test_update (line 74) | def test_update(self): method test_getAPIVersion (line 85) | def test_getAPIVersion(self): method test_getAPIVersion_aliased_to_deprecated_getVersion (line 93) | def test_getAPIVersion_aliased_to_deprecated_getVersion(self): method test_getSupervisorVersion (line 98) | def test_getSupervisorVersion(self): method test_getIdentification (line 107) | def test_getIdentification(self): method test_getState (line 114) | def test_getState(self): method test_getPID (line 125) | def test_getPID(self): method test_readLog_aliased_to_deprecated_readMainLog (line 132) | def test_readLog_aliased_to_deprecated_readMainLog(self): method test_readLog_unreadable (line 137) | def test_readLog_unreadable(self): method test_readLog_badargs (line 144) | def test_readLog_badargs(self): method test_readLog (line 160) | def test_readLog(self): method test_clearLog_unreadable (line 180) | def test_clearLog_unreadable(self): method test_clearLog_unremoveable (line 186) | def test_clearLog_unremoveable(self): method test_clearLog (line 197) | def test_clearLog(self): method test_shutdown (line 209) | def test_shutdown(self): method test_restart (line 216) | def test_restart(self): method test_reloadConfig (line 223) | def test_reloadConfig(self): method test_reloadConfig_process_config_raises_ValueError (line 237) | def test_reloadConfig_process_config_raises_ValueError(self): method test_addProcessGroup (line 247) | def test_addProcessGroup(self): method test_removeProcessGroup (line 270) | def test_removeProcessGroup(self): method test_removeProcessGroup_bad_name (line 285) | def test_removeProcessGroup_bad_name(self): method test_removeProcessGroup_still_running (line 299) | def test_removeProcessGroup_still_running(self): method test_startProcess_already_started (line 314) | def test_startProcess_already_started(self): method test_startProcess_unknown_state (line 326) | def test_startProcess_unknown_state(self): method test_startProcess_bad_group_name (line 342) | def test_startProcess_bad_group_name(self): method test_startProcess_bad_process_name (line 351) | def test_startProcess_bad_process_name(self): method test_startProcess_file_not_found (line 360) | def test_startProcess_file_not_found(self): method test_startProcess_bad_command (line 372) | def test_startProcess_bad_command(self): method test_startProcess_file_not_executable (line 384) | def test_startProcess_file_not_executable(self): method test_startProcess_spawnerr (line 396) | def test_startProcess_spawnerr(self): method test_startProcess (line 412) | def test_startProcess(self): method test_startProcess_spawnerr_in_onwait (line 427) | def test_startProcess_spawnerr_in_onwait(self): method test_startProcess_success_in_onwait (line 446) | def test_startProcess_success_in_onwait(self): method test_startProcess_nowait (line 462) | def test_startProcess_nowait(self): method test_startProcess_abnormal_term_process_not_running (line 475) | def test_startProcess_abnormal_term_process_not_running(self): method test_startProcess_splat_calls_startProcessGroup (line 497) | def test_startProcess_splat_calls_startProcessGroup(self): method test_startProcessGroup (line 512) | def test_startProcessGroup(self): method test_startProcessGroup_nowait (line 546) | def test_startProcessGroup_nowait(self): method test_startProcessGroup_badname (line 574) | def test_startProcessGroup_badname(self): method test_startAllProcesses (line 582) | def test_startAllProcesses(self): method test_startAllProcesses_nowait (line 618) | def test_startAllProcesses_nowait(self): method test_stopProcess (line 646) | def test_stopProcess(self): method test_stopProcess_nowait (line 665) | def test_stopProcess_nowait(self): method test_stopProcess_success_in_onwait (line 679) | def test_stopProcess_success_in_onwait(self): method test_stopProcess_NDY_in_onwait (line 696) | def test_stopProcess_NDY_in_onwait(self): method test_stopProcess_bad_name (line 714) | def test_stopProcess_bad_name(self): method test_stopProcess_not_running (line 721) | def test_stopProcess_not_running(self): method test_stopProcess_failed (line 731) | def test_stopProcess_failed(self): method test_stopProcessGroup (line 740) | def test_stopProcessGroup(self): method test_stopProcessGroup_nowait (line 776) | def test_stopProcessGroup_nowait(self): method test_stopProcessGroup_badname (line 803) | def test_stopProcessGroup_badname(self): method test_stopProcess_splat_calls_stopProcessGroup (line 810) | def test_stopProcess_splat_calls_stopProcessGroup(self): method test_stopAllProcesses (line 825) | def test_stopAllProcesses(self): method test_stopAllProcesses_nowait (line 861) | def test_stopAllProcesses_nowait(self): method test_signalProcess_with_signal_number (line 887) | def test_signalProcess_with_signal_number(self): method test_signalProcess_with_signal_name (line 902) | def test_signalProcess_with_signal_name(self): method test_signalProcess_stopping (line 921) | def test_signalProcess_stopping(self): method test_signalProcess_badsignal (line 936) | def test_signalProcess_badsignal(self): method test_signalProcess_notrunning (line 948) | def test_signalProcess_notrunning(self): method test_signalProcess_signal_returns_message (line 961) | def test_signalProcess_signal_returns_message(self): method test_signalProcess_withgroup (line 979) | def test_signalProcess_withgroup(self): method test_signalProcessGroup_with_signal_number (line 1014) | def test_signalProcessGroup_with_signal_number(self): method test_signalProcessGroup_with_signal_name (line 1046) | def test_signalProcessGroup_with_signal_name(self): method test_signalProcessGroup_nosuchgroup (line 1072) | def test_signalProcessGroup_nosuchgroup(self): method test_signalAllProcesses_with_signal_number (line 1087) | def test_signalAllProcesses_with_signal_number(self): method test_signalAllProcesses_with_signal_name (line 1120) | def test_signalAllProcesses_with_signal_name(self): method test_getAllConfigInfo (line 1145) | def test_getAllConfigInfo(self): method test_getAllConfigInfo_filters_types_not_compatible_with_xmlrpc (line 1221) | def test_getAllConfigInfo_filters_types_not_compatible_with_xmlrpc(self): method test__interpretProcessInfo (line 1245) | def test__interpretProcessInfo(self): method test__interpretProcessInfo_doesnt_report_negative_uptime (line 1307) | def test__interpretProcessInfo_doesnt_report_negative_uptime(self): method test_getProcessInfo (line 1320) | def test_getProcessInfo(self): method test_getProcessInfo_logfile_NONE (line 1351) | def test_getProcessInfo_logfile_NONE(self): method test_getProcessInfo_unknown_state (line 1368) | def test_getProcessInfo_unknown_state(self): method test_getProcessInfo_bad_name_when_bad_process (line 1379) | def test_getProcessInfo_bad_name_when_bad_process(self): method test_getProcessInfo_bad_name_when_no_process (line 1386) | def test_getProcessInfo_bad_name_when_no_process(self): method test_getProcessInfo_caps_timestamps_exceeding_xmlrpc_maxint (line 1395) | def test_getProcessInfo_caps_timestamps_exceeding_xmlrpc_maxint(self): method test_getAllProcessInfo (line 1414) | def test_getAllProcessInfo(self): method test_readProcessStdoutLog_unreadable (line 1480) | def test_readProcessStdoutLog_unreadable(self): method test_readProcessStdoutLog_badargs (line 1491) | def test_readProcessStdoutLog_badargs(self): method test_readProcessStdoutLog_bad_name_no_process (line 1513) | def test_readProcessStdoutLog_bad_name_no_process(self): method test_readProcessStdoutLog (line 1524) | def test_readProcessStdoutLog(self): method test_readProcessLogAliasedTo_readProcessStdoutLog (line 1548) | def test_readProcessLogAliasedTo_readProcessStdoutLog(self): method test_readProcessStderrLog_unreadable (line 1556) | def test_readProcessStderrLog_unreadable(self): method test_readProcessStderrLog_badargs (line 1567) | def test_readProcessStderrLog_badargs(self): method test_readProcessStderrLog_bad_name_no_process (line 1589) | def test_readProcessStderrLog_bad_name_no_process(self): method test_readProcessStderrLog (line 1600) | def test_readProcessStderrLog(self): method test_tailProcessStdoutLog_bad_name (line 1624) | def test_tailProcessStdoutLog_bad_name(self): method test_tailProcessStdoutLog_bad_name_no_process (line 1631) | def test_tailProcessStdoutLog_bad_name_no_process(self): method test_tailProcessStdoutLog_all (line 1641) | def test_tailProcessStdoutLog_all(self): method test_tailProcessStdoutLog_none (line 1665) | def test_tailProcessStdoutLog_none(self): method test_tailProcessStdoutLog_overflow (line 1699) | def test_tailProcessStdoutLog_overflow(self): method test_tailProcessStdoutLog_unreadable (line 1722) | def test_tailProcessStdoutLog_unreadable(self): method test_tailProcessLogAliasedTo_tailProcessStdoutLog (line 1737) | def test_tailProcessLogAliasedTo_tailProcessStdoutLog(self): method test_tailProcessStderrLog_bad_name (line 1745) | def test_tailProcessStderrLog_bad_name(self): method test_tailProcessStderrLog_bad_name_no_process (line 1752) | def test_tailProcessStderrLog_bad_name_no_process(self): method test_tailProcessStderrLog_all (line 1762) | def test_tailProcessStderrLog_all(self): method test_tailProcessStderrLog_none (line 1786) | def test_tailProcessStderrLog_none(self): method test_tailProcessStderrLog_overflow (line 1820) | def test_tailProcessStderrLog_overflow(self): method test_tailProcessStderrLog_unreadable (line 1843) | def test_tailProcessStderrLog_unreadable(self): method test_clearProcessLogs_bad_name_no_group (line 1858) | def test_clearProcessLogs_bad_name_no_group(self): method test_clearProcessLogs_bad_name_no_process (line 1871) | def test_clearProcessLogs_bad_name_no_process(self): method test_clearProcessLogs (line 1884) | def test_clearProcessLogs(self): method test_clearProcessLogs_failed (line 1895) | def test_clearProcessLogs_failed(self): method test_clearProcessLogAliasedTo_clearProcessLogs (line 1907) | def test_clearProcessLogAliasedTo_clearProcessLogs(self): method test_clearAllProcessLogs (line 1915) | def test_clearAllProcessLogs(self): method test_clearAllProcessLogs_onefails (line 1941) | def test_clearAllProcessLogs_onefails(self): method test_clearAllProcessLogs_no_processes (line 1969) | def test_clearAllProcessLogs_no_processes(self): method test_sendProcessStdin_raises_incorrect_params_when_not_chars (line 1977) | def test_sendProcessStdin_raises_incorrect_params_when_not_chars(self): method test_sendProcessStdin_raises_bad_name_when_bad_process (line 1988) | def test_sendProcessStdin_raises_bad_name_when_bad_process(self): method test_sendProcessStdin_raises_bad_name_when_no_process (line 1996) | def test_sendProcessStdin_raises_bad_name_when_no_process(self): method test_sendProcessStdin_raises_not_running_when_not_process_pid (line 2005) | def test_sendProcessStdin_raises_not_running_when_not_process_pid(self): method test_sendProcessStdin_raises_not_running_when_killing (line 2016) | def test_sendProcessStdin_raises_not_running_when_killing(self): method test_sendProcessStdin_raises_no_file_when_write_raises_epipe (line 2028) | def test_sendProcessStdin_raises_no_file_when_write_raises_epipe(self): method test_sendProcessStdin_reraises_other_oserrors (line 2042) | def test_sendProcessStdin_reraises_other_oserrors(self): method test_sendProcessStdin_writes_chars_and_returns_true (line 2055) | def test_sendProcessStdin_writes_chars_and_returns_true(self): method test_sendProcessStdin_unicode_encoded_to_utf8 (line 2067) | def test_sendProcessStdin_unicode_encoded_to_utf8(self): method test_sendRemoteCommEvent_notifies_subscribers (line 2077) | def test_sendRemoteCommEvent_notifies_subscribers(self): method test_sendRemoteCommEvent_unicode_encoded_to_utf8 (line 2100) | def test_sendRemoteCommEvent_unicode_encoded_to_utf8(self): class SystemNamespaceXMLRPCInterfaceTests (line 2131) | class SystemNamespaceXMLRPCInterfaceTests(TestBase): method _getTargetClass (line 2132) | def _getTargetClass(self): method _makeOne (line 2136) | def _makeOne(self): method test_ctor (line 2145) | def test_ctor(self): method test_listMethods (line 2150) | def test_listMethods(self): method test_methodSignature (line 2158) | def test_methodSignature(self): method test_allMethodDocs (line 2167) | def test_allMethodDocs(self): method test_multicall_simplevals (line 2264) | def test_multicall_simplevals(self): method test_multicall_recursion_guard (line 2273) | def test_multicall_recursion_guard(self): method test_multicall_nested_callback (line 2285) | def test_multicall_nested_callback(self): method test_methodHelp (line 2295) | def test_methodHelp(self): class Test_make_allfunc (line 2304) | class Test_make_allfunc(unittest.TestCase): method _callFUT (line 2305) | def _callFUT(self, processes, predicate, func, **extra_kwargs): method test_rpcerror_nocallbacks (line 2309) | def test_rpcerror_nocallbacks(self): method test_func_callback_normal_return_val (line 2327) | def test_func_callback_normal_return_val(self): method test_func_callback_raises_RPCError (line 2345) | def test_func_callback_raises_RPCError(self): method test_func_callback_returns_NOT_DONE_YET (line 2367) | def test_func_callback_returns_NOT_DONE_YET(self): class Test_make_main_rpcinterface (line 2386) | class Test_make_main_rpcinterface(unittest.TestCase): method _callFUT (line 2387) | def _callFUT(self, supervisord): method test_it (line 2391) | def test_it(self): class DummyRPCInterface (line 2399) | class DummyRPCInterface: method hello (line 2400) | def hello(self): FILE: supervisor/tests/test_socket_manager.py class Subject (line 19) | class Subject: method __init__ (line 21) | def __init__(self): method getValue (line 24) | def getValue(self): method setValue (line 27) | def setValue(self, val): class ProxyTest (line 30) | class ProxyTest(unittest.TestCase): method setUp (line 32) | def setUp(self): method _getTargetClass (line 35) | def _getTargetClass(self): method _makeOne (line 39) | def _makeOne(self, *args, **kw): method setOnDeleteCalled (line 42) | def setOnDeleteCalled(self): method test_proxy_getattr (line 45) | def test_proxy_getattr(self): method test_on_delete (line 49) | def test_on_delete(self): class ReferenceCounterTest (line 56) | class ReferenceCounterTest(unittest.TestCase): method setUp (line 58) | def setUp(self): method start (line 61) | def start(self): method stop (line 64) | def stop(self): method _getTargetClass (line 67) | def _getTargetClass(self): method _makeOne (line 71) | def _makeOne(self, *args, **kw): method test_incr_and_decr (line 74) | def test_incr_and_decr(self): method test_decr_at_zero_raises_error (line 90) | def test_decr_at_zero_raises_error(self): class SocketManagerTest (line 94) | class SocketManagerTest(unittest.TestCase): method tearDown (line 96) | def tearDown(self): method _getTargetClass (line 99) | def _getTargetClass(self): method _makeOne (line 103) | def _makeOne(self, *args, **kw): method test_repr (line 106) | def test_repr(self): method test_get_config (line 113) | def test_get_config(self): method test_tcp_w_hostname (line 118) | def test_tcp_w_hostname(self): method test_tcp_w_ip (line 125) | def test_tcp_w_ip(self): method test_unix (line 132) | def test_unix(self): method test_socket_lifecycle (line 142) | def test_socket_lifecycle(self): method test_logging (line 185) | def test_logging(self): method test_prepare_socket (line 199) | def test_prepare_socket(self): method test_prepare_socket_uses_configured_backlog (line 208) | def test_prepare_socket_uses_configured_backlog(self): method test_prepare_socket_uses_somaxconn_if_no_backlog_configured (line 215) | def test_prepare_socket_uses_somaxconn_if_no_backlog_configured(self): method test_tcp_socket_already_taken (line 222) | def test_tcp_socket_already_taken(self): method test_unix_bad_sock (line 230) | def test_unix_bad_sock(self): method test_close_requires_prepared_socket (line 235) | def test_close_requires_prepared_socket(self): function gc_collect (line 245) | def gc_collect(): FILE: supervisor/tests/test_states.py class TopLevelProcessStateTests (line 6) | class TopLevelProcessStateTests(unittest.TestCase): method test_module_has_process_states (line 7) | def test_module_has_process_states(self): method test_stopped_states_do_not_overlap_with_running_states (line 10) | def test_stopped_states_do_not_overlap_with_running_states(self): method test_running_states_do_not_overlap_with_stopped_states (line 14) | def test_running_states_do_not_overlap_with_stopped_states(self): method test_getProcessStateDescription_returns_string_when_found (line 18) | def test_getProcessStateDescription_returns_string_when_found(self): method test_getProcessStateDescription_returns_None_when_not_found (line 23) | def test_getProcessStateDescription_returns_None_when_not_found(self): class TopLevelSupervisorStateTests (line 27) | class TopLevelSupervisorStateTests(unittest.TestCase): method test_module_has_supervisor_states (line 28) | def test_module_has_supervisor_states(self): method test_getSupervisorStateDescription_returns_string_when_found (line 31) | def test_getSupervisorStateDescription_returns_string_when_found(self): method test_getSupervisorStateDescription_returns_None_when_not_found (line 36) | def test_getSupervisorStateDescription_returns_None_when_not_found(self): class TopLevelEventListenerStateTests (line 40) | class TopLevelEventListenerStateTests(unittest.TestCase): method test_module_has_eventlistener_states (line 41) | def test_module_has_eventlistener_states(self): method test_getEventListenerStateDescription_returns_string_when_found (line 44) | def test_getEventListenerStateDescription_returns_string_when_found(se... method test_getEventListenerStateDescription_returns_None_when_not_found (line 49) | def test_getEventListenerStateDescription_returns_None_when_not_found(... FILE: supervisor/tests/test_supervisorctl.py class fgthread_Tests (line 8) | class fgthread_Tests(unittest.TestCase): method _getTargetClass (line 9) | def _getTargetClass(self): method _makeOne (line 13) | def _makeOne(self, program, ctl): method test_ctor (line 16) | def test_ctor(self): method test_globaltrace_call (line 22) | def test_globaltrace_call(self): method test_globaltrace_noncall (line 29) | def test_globaltrace_noncall(self): method test_localtrace_killed_whyline (line 36) | def test_localtrace_killed_whyline(self): method test_localtrace_killed_not_whyline (line 48) | def test_localtrace_killed_not_whyline(self): method test_kill (line 56) | def test_kill(self): class ControllerTests (line 71) | class ControllerTests(unittest.TestCase): method _getTargetClass (line 72) | def _getTargetClass(self): method _makeOne (line 76) | def _makeOne(self, options): method test_ctor (line 80) | def test_ctor(self): method test__upcheck (line 85) | def test__upcheck(self): method test__upcheck_wrong_server_version (line 91) | def test__upcheck_wrong_server_version(self): method test__upcheck_unknown_method (line 103) | def test__upcheck_unknown_method(self): method test__upcheck_reraises_other_xmlrpc_faults (line 121) | def test__upcheck_reraises_other_xmlrpc_faults(self): method test__upcheck_catches_socket_error_ECONNREFUSED (line 132) | def test__upcheck_catches_socket_error_ECONNREFUSED(self): method test__upcheck_catches_socket_error_ENOENT (line 150) | def test__upcheck_catches_socket_error_ENOENT(self): method test__upcheck_reraises_other_socket_faults (line 168) | def test__upcheck_reraises_other_socket_faults(self): method test_onecmd (line 179) | def test_onecmd(self): method test_onecmd_empty_does_not_repeat_previous_cmd (line 189) | def test_onecmd_empty_does_not_repeat_previous_cmd(self): method test_onecmd_clears_completion_cache (line 202) | def test_onecmd_clears_completion_cache(self): method test_onecmd_bad_command_error (line 210) | def test_onecmd_bad_command_error(self): method test_complete_action_empty (line 219) | def test_complete_action_empty(self): method test_complete_action_partial (line 229) | def test_complete_action_partial(self): method test_complete_action_whole (line 239) | def test_complete_action_whole(self): method test_complete_unknown_action_uncompletable (line 247) | def test_complete_unknown_action_uncompletable(self): method test_complete_unknown_action_arg_uncompletable (line 254) | def test_complete_unknown_action_arg_uncompletable(self): method test_complete_help_empty (line 262) | def test_complete_help_empty(self): method test_complete_help_action (line 274) | def test_complete_help_action(self): method test_complete_start_empty (line 284) | def test_complete_start_empty(self): method test_complete_start_no_colon (line 300) | def test_complete_start_no_colon(self): method test_complete_start_with_colon (line 310) | def test_complete_start_with_colon(self): method test_complete_start_uncompletable (line 322) | def test_complete_start_uncompletable(self): method test_complete_caches_process_info (line 330) | def test_complete_caches_process_info(self): method test_complete_add_empty (line 342) | def test_complete_add_empty(self): method test_complete_add_uncompletable (line 356) | def test_complete_add_uncompletable(self): method test_complete_add_group (line 364) | def test_complete_add_group(self): method test_complete_reload_arg_uncompletable (line 374) | def test_complete_reload_arg_uncompletable(self): method test_nohelp (line 382) | def test_nohelp(self): method test_do_help (line 387) | def test_do_help(self): method test_do_help_for_help (line 396) | def test_do_help_for_help(self): method test_get_supervisor_returns_serverproxy_supervisor_namespace (line 405) | def test_get_supervisor_returns_serverproxy_supervisor_namespace(self): method test_get_server_proxy_with_no_args_returns_serverproxy (line 413) | def test_get_server_proxy_with_no_args_returns_serverproxy(self): method test_get_server_proxy_with_namespace_returns_that_namespace (line 421) | def test_get_server_proxy_with_namespace_returns_that_namespace(self): method test_real_controller_initialization (line 429) | def test_real_controller_initialization(self): class TestControllerPluginBase (line 442) | class TestControllerPluginBase(unittest.TestCase): method _getTargetClass (line 443) | def _getTargetClass(self): method _makeOne (line 447) | def _makeOne(self, *arg, **kw): method test_do_help_noarg (line 454) | def test_do_help_noarg(self): method test_do_help_witharg (line 466) | def test_do_help_witharg(self): class TestDefaultControllerPlugin (line 473) | class TestDefaultControllerPlugin(unittest.TestCase): method _getTargetClass (line 475) | def _getTargetClass(self): method _makeOne (line 479) | def _makeOne(self, *arg, **kw): method test_tail_toofewargs (line 486) | def test_tail_toofewargs(self): method test_tail_toomanyargs (line 494) | def test_tail_toomanyargs(self): method test_tail_f_noprocname (line 502) | def test_tail_f_noprocname(self): method test_tail_bad_modifier (line 510) | def test_tail_bad_modifier(self): method test_tail_defaults (line 518) | def test_tail_defaults(self): method test_tail_no_file (line 526) | def test_tail_no_file(self): method test_tail_failed (line 535) | def test_tail_failed(self): method test_tail_bad_name (line 544) | def test_tail_bad_name(self): method test_tail_bytesmodifier (line 553) | def test_tail_bytesmodifier(self): method test_tail_explicit_channel_stdout_nomodifier (line 561) | def test_tail_explicit_channel_stdout_nomodifier(self): method test_tail_explicit_channel_stderr_nomodifier (line 569) | def test_tail_explicit_channel_stderr_nomodifier(self): method test_tail_explicit_channel_unrecognized (line 577) | def test_tail_explicit_channel_unrecognized(self): method test_tail_upcheck_failed (line 585) | def test_tail_upcheck_failed(self): method test_status_help (line 595) | def test_status_help(self): method test_status_upcheck_failed (line 601) | def test_status_upcheck_failed(self): method test_status_table_process_column_min_width (line 611) | def test_status_table_process_column_min_width(self): method test_status_table_process_column_expands (line 618) | def test_status_table_process_column_expands(self): method test_status_all_processes_no_arg (line 651) | def test_status_all_processes_no_arg(self): method test_status_success (line 665) | def test_status_success(self): method test_status_unknown_process (line 674) | def test_status_unknown_process(self): method test_status_all_processes_all_arg (line 682) | def test_status_all_processes_all_arg(self): method test_status_process_name (line 695) | def test_status_process_name(self): method test_status_group_name (line 704) | def test_status_group_name(self): method test_status_mixed_names (line 713) | def test_status_mixed_names(self): method test_status_bad_group_name (line 724) | def test_status_bad_group_name(self): method test_status_bad_process_name (line 732) | def test_status_bad_process_name(self): method test_status_bad_process_name_with_group (line 740) | def test_status_bad_process_name_with_group(self): method test_start_help (line 749) | def test_start_help(self): method test_start_fail (line 755) | def test_start_fail(self): method test_start_badname (line 763) | def test_start_badname(self): method test_start_no_file (line 771) | def test_start_no_file(self): method test_start_not_executable (line 779) | def test_start_not_executable(self): method test_start_alreadystarted (line 787) | def test_start_alreadystarted(self): method test_start_spawnerror (line 795) | def test_start_spawnerror(self): method test_start_abnormaltermination (line 803) | def test_start_abnormaltermination(self): method test_start_one_success (line 811) | def test_start_one_success(self): method test_start_one_with_group_name_success (line 818) | def test_start_one_with_group_name_success(self): method test_start_many (line 826) | def test_start_many(self): method test_start_group (line 834) | def test_start_group(self): method test_start_group_bad_name (line 844) | def test_start_group_bad_name(self): method test_start_all (line 852) | def test_start_all(self): method test_start_upcheck_failed (line 863) | def test_start_upcheck_failed(self): method test_stop_help (line 875) | def test_stop_help(self): method test_stop_fail (line 881) | def test_stop_fail(self): method test_stop_badname (line 889) | def test_stop_badname(self): method test_stop_notrunning (line 897) | def test_stop_notrunning(self): method test_stop_failed (line 905) | def test_stop_failed(self): method test_stop_one_success (line 912) | def test_stop_one_success(self): method test_stop_one_with_group_name_success (line 920) | def test_stop_one_with_group_name_success(self): method test_stop_many (line 928) | def test_stop_many(self): method test_stop_group (line 937) | def test_stop_group(self): method test_stop_group_bad_name (line 946) | def test_stop_group_bad_name(self): method test_stop_all (line 954) | def test_stop_all(self): method test_stop_upcheck_failed (line 964) | def test_stop_upcheck_failed(self): method test_signal_help (line 976) | def test_signal_help(self): method test_signal_fail_no_arg (line 982) | def test_signal_fail_no_arg(self): method test_signal_fail_one_arg (line 990) | def test_signal_fail_one_arg(self): method test_signal_bad_signal (line 998) | def test_signal_bad_signal(self): method test_signal_bad_name (line 1006) | def test_signal_bad_name(self): method test_signal_bad_group (line 1014) | def test_signal_bad_group(self): method test_signal_not_running (line 1022) | def test_signal_not_running(self): method test_signal_failed (line 1030) | def test_signal_failed(self): method test_signal_one_success (line 1037) | def test_signal_one_success(self): method test_signal_many (line 1044) | def test_signal_many(self): method test_signal_group (line 1053) | def test_signal_group(self): method test_signal_all (line 1062) | def test_signal_all(self): method test_signal_upcheck_failed (line 1072) | def test_signal_upcheck_failed(self): method test_restart_help (line 1084) | def test_restart_help(self): method test_restart_fail (line 1090) | def test_restart_fail(self): method test_restart_one (line 1098) | def test_restart_one(self): method test_restart_all (line 1106) | def test_restart_all(self): method test_restart_upcheck_failed (line 1117) | def test_restart_upcheck_failed(self): method test_clear_help (line 1129) | def test_clear_help(self): method test_clear_fail (line 1135) | def test_clear_fail(self): method test_clear_badname (line 1143) | def test_clear_badname(self): method test_clear_one_success (line 1151) | def test_clear_one_success(self): method test_clear_one_with_group_success (line 1159) | def test_clear_one_with_group_success(self): method test_clear_many (line 1167) | def test_clear_many(self): method test_clear_all (line 1175) | def test_clear_all(self): method test_clear_upcheck_failed (line 1186) | def test_clear_upcheck_failed(self): method test_open_help (line 1198) | def test_open_help(self): method test_open_fail (line 1204) | def test_open_fail(self): method test_open_succeed (line 1212) | def test_open_succeed(self): method test_version_help (line 1225) | def test_version_help(self): method test_version (line 1231) | def test_version(self): method test_version_arg (line 1236) | def test_version_arg(self): method test_version_upcheck_failed (line 1244) | def test_version_upcheck_failed(self): method test_reload_help (line 1254) | def test_reload_help(self): method test_reload_fail (line 1260) | def test_reload_fail(self): method test_reload (line 1268) | def test_reload(self): method test_reload_arg (line 1275) | def test_reload_arg(self): method test_shutdown_help (line 1283) | def test_shutdown_help(self): method test_shutdown_with_arg_shows_error (line 1289) | def test_shutdown_with_arg_shows_error(self): method test_shutdown (line 1299) | def test_shutdown(self): method test_shutdown_catches_xmlrpc_fault_shutdown_state (line 1306) | def test_shutdown_catches_xmlrpc_fault_shutdown_state(self): method test_shutdown_reraises_other_xmlrpc_faults (line 1320) | def test_shutdown_reraises_other_xmlrpc_faults(self): method test_shutdown_catches_socket_error_ECONNREFUSED (line 1332) | def test_shutdown_catches_socket_error_ECONNREFUSED(self): method test_shutdown_catches_socket_error_ENOENT (line 1348) | def test_shutdown_catches_socket_error_ENOENT(self): method test_shutdown_reraises_other_socket_errors (line 1364) | def test_shutdown_reraises_other_socket_errors(self): method test__formatChanges (line 1377) | def test__formatChanges(self): method test_reread_help (line 1383) | def test_reread_help(self): method test_reread (line 1390) | def test_reread(self): method test_reread_arg (line 1399) | def test_reread_arg(self): method test_reread_cant_reread (line 1407) | def test_reread_cant_reread(self): method test_reread_shutdown_state (line 1418) | def test_reread_shutdown_state(self): method test_reread_reraises_other_faults (line 1429) | def test_reread_reraises_other_faults(self): method test__formatConfigInfo (line 1438) | def test__formatConfigInfo(self): method test_avail_help (line 1457) | def test_avail_help(self): method test_avail (line 1463) | def test_avail(self): method test_avail_arg (line 1478) | def test_avail_arg(self): method test_avail_shutdown_state (line 1486) | def test_avail_shutdown_state(self): method test_avail_reraises_other_faults (line 1501) | def test_avail_reraises_other_faults(self): method test_add_help (line 1513) | def test_add_help(self): method test_add (line 1519) | def test_add(self): method test_add_already_added (line 1527) | def test_add_already_added(self): method test_add_bad_name (line 1535) | def test_add_bad_name(self): method test_add_shutdown_state (line 1543) | def test_add_shutdown_state(self): method test_add_reraises_other_faults (line 1551) | def test_add_reraises_other_faults(self): method test_remove_help (line 1556) | def test_remove_help(self): method test_remove (line 1563) | def test_remove(self): method test_remove_bad_name (line 1571) | def test_remove_bad_name(self): method test_remove_still_running (line 1581) | def test_remove_still_running(self): method test_remove_reraises_other_faults (line 1591) | def test_remove_reraises_other_faults(self): method test_update_help (line 1596) | def test_update_help(self): method test_update_not_on_shutdown (line 1602) | def test_update_not_on_shutdown(self): method test_update_added_procs (line 1613) | def test_update_added_procs(self): method test_update_with_gname (line 1625) | def test_update_with_gname(self): method test_update_changed_procs (line 1657) | def test_update_changed_procs(self): method test_update_removed_procs (line 1710) | def test_update_removed_procs(self): method test_update_reraises_other_faults (line 1751) | def test_update_reraises_other_faults(self): method test_pid_help (line 1763) | def test_pid_help(self): method test_pid_supervisord (line 1769) | def test_pid_supervisord(self): method test_pid_allprocesses (line 1778) | def test_pid_allprocesses(self): method test_pid_badname (line 1786) | def test_pid_badname(self): method test_pid_oneprocess (line 1794) | def test_pid_oneprocess(self): method test_pid_oneprocess_not_running (line 1801) | def test_pid_oneprocess_not_running(self): method test_pid_upcheck_failed (line 1824) | def test_pid_upcheck_failed(self): method test_maintail_help (line 1834) | def test_maintail_help(self): method test_maintail_toomanyargs (line 1840) | def test_maintail_toomanyargs(self): method test_maintail_minus_string_fails (line 1848) | def test_maintail_minus_string_fails(self): method test_maintail_wrong (line 1856) | def test_maintail_wrong(self): method _dont_test_maintail_dashf (line 1864) | def _dont_test_maintail_dashf(self): method test_maintail_bad_modifier (line 1881) | def test_maintail_bad_modifier(self): method test_maintail_nobytes (line 1889) | def test_maintail_nobytes(self): method test_maintail_dashbytes (line 1895) | def test_maintail_dashbytes(self): method test_maintail_readlog_error_nofile (line 1901) | def test_maintail_readlog_error_nofile(self): method test_maintail_readlog_error_failed (line 1912) | def test_maintail_readlog_error_failed(self): method test_maintail_upcheck_failed (line 1923) | def test_maintail_upcheck_failed(self): method test_fg_help (line 1933) | def test_fg_help(self): method test_fg_too_few_args (line 1939) | def test_fg_too_few_args(self): method test_fg_too_many_args (line 1947) | def test_fg_too_many_args(self): method test_fg_badprocname (line 1955) | def test_fg_badprocname(self): method test_fg_procnotrunning (line 1963) | def test_fg_procnotrunning(self): method test_fg_upcheck_failed (line 1975) | def test_fg_upcheck_failed(self): method test_exit_help (line 1985) | def test_exit_help(self): method test_quit_help (line 1991) | def test_quit_help(self): class DummyListener (line 1997) | class DummyListener: method __init__ (line 1998) | def __init__(self): method error (line 2000) | def error(self, url, msg): method close (line 2002) | def close(self, url): class DummyPluginFactory (line 2005) | class DummyPluginFactory: method __init__ (line 2006) | def __init__(self, ctl, **kw): method do_help (line 2009) | def do_help(self, arg): class DummyClientOptions (line 2012) | class DummyClientOptions: method __init__ (line 2013) | def __init__(self): method getServerProxy (line 2024) | def getServerProxy(self): class DummyController (line 2027) | class DummyController: method __init__ (line 2029) | def __init__(self, options): method upcheck (line 2035) | def upcheck(self): method get_supervisor (line 2038) | def get_supervisor(self): method get_server_proxy (line 2041) | def get_server_proxy(self, namespace=None): method output (line 2048) | def output(self, data): method print_topics (line 2051) | def print_topics(self, doc_headers, cmds_doc, rows, cols): method set_exitstatus_from_xmlrpc_fault (line 2054) | def set_exitstatus_from_xmlrpc_fault(self, faultcode, ignored_faultcod... class DummyPlugin (line 2063) | class DummyPlugin: method __init__ (line 2064) | def __init__(self, controller=None): method do_help (line 2067) | def do_help(self, arg): FILE: supervisor/tests/test_supervisord.py class EntryPointTests (line 28) | class EntryPointTests(unittest.TestCase): method test_main_noprofile (line 29) | def test_main_noprofile(self): method test_main_profile (line 51) | def test_main_profile(self): method test_silent_off (line 72) | def test_silent_off(self): method test_silent_on (line 93) | def test_silent_on(self): class SupervisordTests (line 114) | class SupervisordTests(unittest.TestCase): method tearDown (line 115) | def tearDown(self): method _getTargetClass (line 119) | def _getTargetClass(self): method _makeOne (line 123) | def _makeOne(self, options): method test_main_first (line 126) | def test_main_first(self): method test_main_notfirst (line 150) | def test_main_notfirst(self): method test_reap (line 174) | def test_reap(self): method test_reap_recursionguard (line 189) | def test_reap_recursionguard(self): method test_reap_more_than_once (line 195) | def test_reap_more_than_once(self): method test_reap_unknown_pid (line 210) | def test_reap_unknown_pid(self): method test_handle_sigterm (line 227) | def test_handle_sigterm(self): method test_handle_sigint (line 237) | def test_handle_sigint(self): method test_handle_sigquit (line 247) | def test_handle_sigquit(self): method test_handle_sighup_in_running_state (line 257) | def test_handle_sighup_in_running_state(self): method test_handle_sighup_in_shutdown_state (line 269) | def test_handle_sighup_in_shutdown_state(self): method test_handle_sigchld (line 283) | def test_handle_sigchld(self): method test_handle_sigusr2 (line 296) | def test_handle_sigusr2(self): method test_handle_unknown_signal (line 317) | def test_handle_unknown_signal(self): method test_get_state (line 327) | def test_get_state(self): method test_diff_to_active_finds_groups_added (line 332) | def test_diff_to_active_finds_groups_added(self): method test_diff_to_active_finds_groups_removed (line 347) | def test_diff_to_active_finds_groups_removed(self): method test_diff_to_active_changed (line 369) | def test_diff_to_active_changed(self): method test_diff_to_active_changed_eventlistener (line 437) | def test_diff_to_active_changed_eventlistener(self): method test_add_process_group (line 559) | def test_add_process_group(self): method test_add_process_group_emits_event (line 577) | def test_add_process_group_emits_event(self): method test_remove_process_group (line 595) | def test_remove_process_group(self): method test_remove_process_group_event (line 616) | def test_remove_process_group_event(self): method test_runforever_emits_generic_startup_event (line 636) | def test_runforever_emits_generic_startup_event(self): method test_runforever_emits_generic_specific_event (line 648) | def test_runforever_emits_generic_specific_event(self): method test_runforever_calls_tick (line 660) | def test_runforever_calls_tick(self): method test_runforever_poll_dispatchers (line 668) | def test_runforever_poll_dispatchers(self): method test_runforever_select_dispatcher_exitnow_via_read (line 687) | def test_runforever_select_dispatcher_exitnow_via_read(self): method test_runforever_select_dispatcher_exitnow_via_write (line 701) | def test_runforever_select_dispatcher_exitnow_via_write(self): method test_runforever_select_dispatcher_handle_error_via_read (line 715) | def test_runforever_select_dispatcher_handle_error_via_read(self): method test_runforever_select_dispatcher_handle_error_via_write (line 729) | def test_runforever_select_dispatcher_handle_error_via_write(self): method test_runforever_stopping_emits_events (line 743) | def test_runforever_stopping_emits_events(self): method test_exit (line 764) | def test_exit(self): method test_exit_delayed (line 780) | def test_exit_delayed(self): method test_getSupervisorStateDescription (line 797) | def test_getSupervisorStateDescription(self): method test_tick (line 802) | def test_tick(self): FILE: supervisor/tests/test_templating.py class MeldAPITests (line 310) | class MeldAPITests(unittest.TestCase): method _makeElement (line 311) | def _makeElement(self, string): method _makeElementFromHTML (line 315) | def _makeElementFromHTML(self, string): method test_findmeld (line 319) | def test_findmeld(self): method test_findmeld_default (line 326) | def test_findmeld_default(self): method test_repeat_nochild (line 334) | def test_repeat_nochild(self): method test_repeat_child (line 346) | def test_repeat_child(self): method test_mod (line 360) | def test_mod(self): method test_fillmelds (line 368) | def test_fillmelds(self): method test_fillmeldhtmlform (line 375) | def test_fillmeldhtmlform(self): method test_replace_removes_all_elements (line 430) | def test_replace_removes_all_elements(self): method test_replace_replaces_the_right_element (line 439) | def test_replace_replaces_the_right_element(self): method test_content (line 460) | def test_content(self): method test_attributes (line 484) | def test_attributes(self): method test_attributes_unicode (line 494) | def test_attributes_unicode(self): method test_attributes_nonstringtype_raises (line 506) | def test_attributes_nonstringtype_raises(self): class MeldElementInterfaceTests (line 510) | class MeldElementInterfaceTests(unittest.TestCase): method _getTargetClass (line 511) | def _getTargetClass(self): method _makeOne (line 515) | def _makeOne(self, *arg, **kw): method test_repeat (line 519) | def test_repeat(self): method test_content_simple_nostructure (line 558) | def test_content_simple_nostructure(self): method test_content_simple_structure (line 569) | def test_content_simple_structure(self): method test_findmeld_simple (line 580) | def test_findmeld_simple(self): method test_findmeld_simple_oneleveldown (line 585) | def test_findmeld_simple_oneleveldown(self): method test_findmeld_simple_twolevelsdown (line 592) | def test_findmeld_simple_twolevelsdown(self): method test_ctor (line 601) | def test_ctor(self): method test_getiterator_simple (line 607) | def test_getiterator_simple(self): method test_getiterator (line 613) | def test_getiterator(self): method test_getiterator_tag_ignored (line 631) | def test_getiterator_tag_ignored(self): method test_append (line 649) | def test_append(self): method test__setitem__ (line 656) | def test__setitem__(self): method test_insert (line 666) | def test_insert(self): method test_clone_simple (line 679) | def test_clone_simple(self): method test_clone (line 687) | def test_clone(self): method test_deparent_noparent (line 715) | def test_deparent_noparent(self): method test_deparent_withparent (line 721) | def test_deparent_withparent(self): method test_setslice (line 733) | def test_setslice(self): method test_delslice (line 745) | def test_delslice(self): method test_remove (line 758) | def test_remove(self): method test_lineage (line 766) | def test_lineage(self): method test_shortrepr (line 808) | def test_shortrepr(self): method test_shortrepr2 (line 822) | def test_shortrepr2(self): method test_diffmeld1 (line 837) | def test_diffmeld1(self): method test_diffmeld2 (line 875) | def test_diffmeld2(self): method test_diffmeld3 (line 920) | def test_diffmeld3(self): method test_diffmeld4 (line 975) | def test_diffmeld4(self): method test_diffmeld5 (line 1035) | def test_diffmeld5(self): class ParserTests (line 1101) | class ParserTests(unittest.TestCase): method _parse (line 1102) | def _parse(self, *args): method _parse_html (line 1107) | def _parse_html(self, *args): method test_parse_simple_xml (line 1112) | def test_parse_simple_xml(self): method test_parse_simple_xhtml (line 1134) | def test_parse_simple_xhtml(self): method test_parse_complex_xhtml (line 1147) | def test_parse_complex_xhtml(self): method test_nvu_html (line 1221) | def test_nvu_html(self): method test_dupe_meldids_fails_parse_xml (line 1263) | def test_dupe_meldids_fails_parse_xml(self): method test_dupe_meldids_fails_parse_html (line 1269) | def test_dupe_meldids_fails_parse_html(self): class UtilTests (line 1275) | class UtilTests(unittest.TestCase): method test_insert_xhtml_doctype (line 1277) | def test_insert_xhtml_doctype(self): method test_insert_doctype_after_xmldecl (line 1284) | def test_insert_doctype_after_xmldecl(self): method test_insert_meld_ns_decl (line 1291) | def test_insert_meld_ns_decl(self): method test_prefeed_preserves_existing_meld_ns (line 1298) | def test_prefeed_preserves_existing_meld_ns(self): method test_prefeed_preserves_existing_doctype (line 1305) | def test_prefeed_preserves_existing_doctype(self): class WriterTests (line 1311) | class WriterTests(unittest.TestCase): method _parse (line 1312) | def _parse(self, xml): method _parse_html (line 1317) | def _parse_html(self, xml): method _write (line 1322) | def _write(self, fn, **kw): method _write_xml (line 1333) | def _write_xml(self, node, **kw): method _write_html (line 1336) | def _write_html(self, node, **kw): method _write_xhtml (line 1339) | def _write_xhtml(self, node, **kw): method assertNormalizedXMLEqual (line 1342) | def assertNormalizedXMLEqual(self, a, b): method assertNormalizedHTMLEqual (line 1348) | def assertNormalizedHTMLEqual(self, a, b): method test_write_simple_xml (line 1354) | def test_write_simple_xml(self): method test_write_simple_xhtml (line 1381) | def test_write_simple_xhtml(self): method test_write_simple_xhtml_as_html (line 1387) | def test_write_simple_xhtml_as_html(self): method test_write_complex_xhtml_as_html (line 1396) | def test_write_complex_xhtml_as_html(self): method test_write_complex_xhtml_as_xhtml (line 1437) | def test_write_complex_xhtml_as_xhtml(self): method test_write_emptytags_html (line 1484) | def test_write_emptytags_html(self): method test_write_booleanattrs_xhtml_as_html (line 1497) | def test_write_booleanattrs_xhtml_as_html(self): method test_write_simple_xhtml_pipeline (line 1519) | def test_write_simple_xhtml_pipeline(self): method test_write_simple_xml_pipeline (line 1525) | def test_write_simple_xml_pipeline(self): method test_write_simple_xml_override_encoding (line 1538) | def test_write_simple_xml_override_encoding(self): method test_write_simple_xml_as_fragment (line 1552) | def test_write_simple_xml_as_fragment(self): method test_write_simple_xml_with_doctype (line 1565) | def test_write_simple_xml_with_doctype(self): method test_write_simple_xml_doctype_nodeclaration (line 1580) | def test_write_simple_xml_doctype_nodeclaration(self): method test_write_simple_xml_fragment_kills_doctype_and_declaration (line 1595) | def test_write_simple_xml_fragment_kills_doctype_and_declaration(self): method test_write_simple_xhtml_override_encoding (line 1610) | def test_write_simple_xhtml_override_encoding(self): method test_write_simple_xhtml_as_fragment (line 1616) | def test_write_simple_xhtml_as_fragment(self): method test_write_simple_xhtml_with_doctype (line 1622) | def test_write_simple_xhtml_with_doctype(self): method test_write_simple_xhtml_doctype_nodeclaration (line 1629) | def test_write_simple_xhtml_doctype_nodeclaration(self): method test_write_simple_xhtml_fragment_kills_doctype_and_declaration (line 1637) | def test_write_simple_xhtml_fragment_kills_doctype_and_declaration(self): method test_write_simple_xhtml_as_html_fragment (line 1645) | def test_write_simple_xhtml_as_html_fragment(self): method test_write_simple_xhtml_with_doctype_as_html (line 1651) | def test_write_simple_xhtml_with_doctype_as_html(self): method test_write_simple_xhtml_as_html_new_doctype (line 1659) | def test_write_simple_xhtml_as_html_new_doctype(self): method test_unknown_entity (line 1668) | def test_unknown_entity(self): method test_content_nostructure (line 1674) | def test_content_nostructure(self): method test_content_structure (line 1690) | def test_content_structure(self): method test_replace_nostructure (line 1706) | def test_replace_nostructure(self): method test_replace_structure (line 1722) | def test_replace_structure(self): method test_escape_cdata (line 1738) | def test_escape_cdata(self): method test_escape_cdata_unicodeerror (line 1749) | def test_escape_cdata_unicodeerror(self): method test_escape_attrib (line 1757) | def test_escape_attrib(self): method test_escape_attrib_unicodeerror (line 1769) | def test_escape_attrib_unicodeerror(self): function normalize_html (line 1777) | def normalize_html(s): function normalize_xml (line 1782) | def normalize_xml(s): FILE: supervisor/tests/test_web.py class DeferredWebProducerTests (line 6) | class DeferredWebProducerTests(unittest.TestCase): method _getTargetClass (line 7) | def _getTargetClass(self): method _makeOne (line 11) | def _makeOne(self, request, callback): method test_ctor (line 15) | def test_ctor(self): method test_more_not_done_yet (line 25) | def test_more_not_done_yet(self): method test_more_finished (line 33) | def test_more_finished(self): method test_more_exception_caught (line 42) | def test_more_exception_caught(self): method test_sendresponse_redirect (line 57) | def test_sendresponse_redirect(self): method test_sendresponse_withbody_and_content_type (line 69) | def test_sendresponse_withbody_and_content_type(self): class UIHandlerTests (line 81) | class UIHandlerTests(unittest.TestCase): method _getTargetClass (line 82) | def _getTargetClass(self): method _makeOne (line 86) | def _makeOne(self): method test_handle_request_no_view_method (line 91) | def test_handle_request_no_view_method(self): method test_handle_request_default (line 97) | def test_handle_request_default(self): method test_handle_request_index_html (line 107) | def test_handle_request_index_html(self): method test_handle_request_tail_html (line 117) | def test_handle_request_tail_html(self): method test_handle_request_ok_html (line 127) | def test_handle_request_ok_html(self): class StatusViewTests (line 138) | class StatusViewTests(unittest.TestCase): method _getTargetClass (line 139) | def _getTargetClass(self): method _makeOne (line 143) | def _makeOne(self, context): method test_make_callback_noaction (line 147) | def test_make_callback_noaction(self): method test_render_noaction (line 155) | def test_render_noaction(self): method test_render_refresh (line 166) | def test_render_refresh(self): class DummyContext (line 177) | class DummyContext: FILE: supervisor/tests/test_xmlrpc.py class GetFaultDescriptionTests (line 10) | class GetFaultDescriptionTests(unittest.TestCase): method test_returns_description_for_known_fault (line 11) | def test_returns_description_for_known_fault(self): method test_returns_unknown_for_unknown_fault (line 16) | def test_returns_unknown_for_unknown_fault(self): class RPCErrorTests (line 21) | class RPCErrorTests(unittest.TestCase): method _getTargetClass (line 22) | def _getTargetClass(self): method _makeOne (line 26) | def _makeOne(self, code, extra=None): method test_sets_text_with_fault_name_only (line 29) | def test_sets_text_with_fault_name_only(self): method test_sets_text_with_fault_name_and_extra (line 34) | def test_sets_text_with_fault_name_and_extra(self): method test___str___shows_code_and_text (line 39) | def test___str___shows_code_and_text(self): class XMLRPCMarshallingTests (line 46) | class XMLRPCMarshallingTests(unittest.TestCase): method test_xmlrpc_marshal (line 47) | def test_xmlrpc_marshal(self): class XMLRPCHandlerTests (line 55) | class XMLRPCHandlerTests(unittest.TestCase): method _getTargetClass (line 56) | def _getTargetClass(self): method _makeOne (line 60) | def _makeOne(self, supervisord, subinterfaces): method test_ctor (line 63) | def test_ctor(self): method test_match (line 71) | def test_match(self): method test_continue_request_nosuchmethod (line 81) | def test_continue_request_nosuchmethod(self): method test_continue_request_methodsuccess (line 99) | def test_continue_request_methodsuccess(self): method test_continue_request_no_params_in_request (line 121) | def test_continue_request_no_params_in_request(self): method test_continue_request_400_if_method_name_is_empty (line 146) | def test_continue_request_400_if_method_name_is_empty(self): method test_continue_request_400_if_loads_raises_not_xml (line 161) | def test_continue_request_400_if_loads_raises_not_xml(self): method test_continue_request_400_if_loads_raises_weird_xml (line 175) | def test_continue_request_400_if_loads_raises_weird_xml(self): method test_continue_request_500_if_rpcinterface_method_call_raises (line 189) | def test_continue_request_500_if_rpcinterface_method_call_raises(self): method test_continue_request_500_if_xmlrpc_dumps_raises (line 206) | def test_continue_request_500_if_xmlrpc_dumps_raises(self): method test_continue_request_value_is_function (line 226) | def test_continue_request_value_is_function(self): method test_iterparse_loads_methodcall (line 249) | def test_iterparse_loads_methodcall(self): class TraverseTests (line 334) | class TraverseTests(unittest.TestCase): method test_security_disallows_underscore_methods (line 335) | def test_security_disallows_underscore_methods(self): method test_security_disallows_object_traversal (line 347) | def test_security_disallows_object_traversal(self): method test_namespace_name_not_found (line 362) | def test_namespace_name_not_found(self): method test_method_name_not_found (line 370) | def test_method_name_not_found(self): method test_method_name_exists_but_is_not_a_method (line 381) | def test_method_name_exists_but_is_not_a_method(self): method test_bad_params (line 395) | def test_bad_params(self): method test_success (line 407) | def test_success(self): class SupervisorTransportTests (line 419) | class SupervisorTransportTests(unittest.TestCase): method _getTargetClass (line 420) | def _getTargetClass(self): method _makeOne (line 424) | def _makeOne(self, *arg, **kw): method test_ctor_unix (line 427) | def test_ctor_unix(self): method test_ctor_unknown (line 435) | def test_ctor_unknown(self): method test__get_connection_http_9001 (line 440) | def test__get_connection_http_9001(self): method test__get_connection_http_80 (line 447) | def test__get_connection_http_80(self): method test_request_non_200_response (line 454) | def test_request_non_200_response(self): method test_request_400_response (line 465) | def test_request_400_response(self): method test_request_200_response (line 484) | def test_request_200_response(self): method test_close (line 511) | def test_close(self): class TestDeferredXMLRPCResponse (line 522) | class TestDeferredXMLRPCResponse(unittest.TestCase): method _getTargetClass (line 523) | def _getTargetClass(self): method _makeOne (line 527) | def _makeOne(self, request=None, callback=None): method test_ctor (line 535) | def test_ctor(self): method test_more_finished (line 544) | def test_more_finished(self): method test_more_callback_returns_not_done_yet (line 550) | def test_more_callback_returns_not_done_yet(self): method test_more_callback_raises_RPCError (line 558) | def test_more_callback_raises_RPCError(self): method test_more_callback_returns_value (line 569) | def test_more_callback_returns_value(self): method test_more_callback_raises_unexpected_exception (line 579) | def test_more_callback_raises_unexpected_exception(self): method test_getresponse_http_10_with_keepalive (line 593) | def test_getresponse_http_10_with_keepalive(self): method test_getresponse_http_10_no_keepalive (line 601) | def test_getresponse_http_10_no_keepalive(self): method test_getresponse_http_11_without_close (line 608) | def test_getresponse_http_11_without_close(self): method test_getresponse_http_11_with_close (line 615) | def test_getresponse_http_11_with_close(self): method test_getresponse_http_unknown (line 623) | def test_getresponse_http_unknown(self): class TestSystemNamespaceRPCInterface (line 630) | class TestSystemNamespaceRPCInterface(unittest.TestCase): method _makeOne (line 631) | def _makeOne(self, namespaces=()): method test_listMethods_gardenpath (line 635) | def test_listMethods_gardenpath(self): method test_listMethods_omits_underscore_attrs (line 647) | def test_listMethods_omits_underscore_attrs(self): method test_methodHelp_known_method (line 664) | def test_methodHelp_known_method(self): method test_methodHelp_unknown_method (line 669) | def test_methodHelp_unknown_method(self): method test_methodSignature_known_method (line 674) | def test_methodSignature_known_method(self): method test_methodSignature_unknown_method (line 679) | def test_methodSignature_unknown_method(self): method test_methodSignature_with_bad_sig (line 684) | def test_methodSignature_with_bad_sig(self): method test_multicall_faults_for_recursion (line 693) | def test_multicall_faults_for_recursion(self): method test_multicall_faults_for_missing_methodName (line 705) | def test_multicall_faults_for_missing_methodName(self): method test_multicall_faults_for_methodName_bad_namespace (line 716) | def test_multicall_faults_for_methodName_bad_namespace(self): method test_multicall_faults_for_methodName_good_ns_bad_method (line 727) | def test_multicall_faults_for_methodName_good_ns_bad_method(self): method test_multicall_returns_empty_results_for_empty_calls (line 741) | def test_multicall_returns_empty_results_for_empty_calls(self): method test_multicall_performs_noncallback_functions_serially (line 747) | def test_multicall_performs_noncallback_functions_serially(self): method test_multicall_catches_noncallback_exceptions (line 762) | def test_multicall_catches_noncallback_exceptions(self): method test_multicall_catches_callback_exceptions (line 781) | def test_multicall_catches_callback_exceptions(self): method test_multicall_performs_callback_functions_serially (line 808) | def test_multicall_performs_callback_functions_serially(self): class Test_gettags (line 840) | class Test_gettags(unittest.TestCase): method _callFUT (line 841) | def _callFUT(self, comment): method test_one_atpart (line 845) | def test_one_atpart(self): method test_two_atparts (line 853) | def test_two_atparts(self): method test_three_atparts (line 861) | def test_three_atparts(self): method test_four_atparts (line 869) | def test_four_atparts(self): class Test_capped_int (line 877) | class Test_capped_int(unittest.TestCase): method _callFUT (line 878) | def _callFUT(self, value): method test_converts_value_to_integer (line 882) | def test_converts_value_to_integer(self): method test_caps_value_below_minint (line 885) | def test_caps_value_below_minint(self): method test_caps_value_above_maxint (line 889) | def test_caps_value_above_maxint(self): class DummyResponse (line 894) | class DummyResponse: method __init__ (line 895) | def __init__(self, status=200, body='', reason='reason'): method read (line 900) | def read(self): class Dummy (line 903) | class Dummy(object): class DummyConnection (line 906) | class DummyConnection: method __init__ (line 908) | def __init__(self, status=200, body='', reason='reason'): method getresponse (line 911) | def getresponse(self): method request (line 914) | def request(self, *arg, **kw): method close (line 918) | def close(self): FILE: supervisor/web.py class DeferredWebProducer (line 35) | class DeferredWebProducer: method __init__ (line 40) | def __init__(self, request, callback): method more (line 46) | def more(self): method sendresponse (line 64) | def sendresponse(self, response): class ViewContext (line 154) | class ViewContext: method __init__ (line 155) | def __init__(self, **kw): class MeldView (line 158) | class MeldView: method __init__ (line 163) | def __init__(self, context): method __call__ (line 172) | def __call__(self): method render (line 186) | def render(self): method clone (line 189) | def clone(self): class TailView (line 192) | class TailView(MeldView): method render (line 193) | def render(self): class StatusView (line 238) | class StatusView(MeldView): method actions_for_process (line 239) | def actions_for_process(self, process): method css_class_for_state (line 282) | def css_class_for_state(self, state): method make_callback (line 290) | def make_callback(self, namespec, action): method render (line 463) | def render(self): class OKView (line 565) | class OKView: method __init__ (line 567) | def __init__(self, context): method __call__ (line 570) | def __call__(self): class supervisor_ui_handler (line 589) | class supervisor_ui_handler: method __init__ (line 592) | def __init__(self, supervisord): method match (line 595) | def match(self, request): method handle_request (line 611) | def handle_request(self, request): method continue_request (line 617) | def continue_request (self, data, request): FILE: supervisor/xmlrpc.py class Faults (line 26) | class Faults: function getFaultDescription (line 46) | def getFaultDescription(code): class RPCError (line 52) | class RPCError(Exception): method __init__ (line 53) | def __init__(self, code, extra=None): method __str__ (line 59) | def __str__(self): class DeferredXMLRPCResponse (line 62) | class DeferredXMLRPCResponse: method __init__ (line 67) | def __init__(self, request, callback): method more (line 73) | def more(self): method getresponse (line 98) | def getresponse(self, body): function xmlrpc_marshal (line 144) | def xmlrpc_marshal(value): class SystemNamespaceRPCInterface (line 154) | class SystemNamespaceRPCInterface: method __init__ (line 155) | def __init__(self, namespaces): method _listMethods (line 161) | def _listMethods(self): method listMethods (line 175) | def listMethods(self): method methodHelp (line 185) | def methodHelp(self, name): method methodSignature (line 197) | def methodSignature(self, name): method multicall (line 222) | def multicall(self, calls): class AttrDict (line 305) | class AttrDict(dict): method __getattr__ (line 307) | def __getattr__(self, name): class RootRPCInterface (line 310) | class RootRPCInterface: method __init__ (line 311) | def __init__(self, subinterfaces): function capped_int (line 315) | def capped_int(value): function make_datetime (line 323) | def make_datetime(text): class supervisor_xmlrpc_handler (line 328) | class supervisor_xmlrpc_handler(xmlrpc_handler): method __init__ (line 346) | def __init__(self, supervisord, subinterfaces): method loads (line 350) | def loads(self, data): method match (line 371) | def match(self, request): method continue_request (line 374) | def continue_request(self, data, request): method call (line 445) | def call(self, method, params): function traverse (line 448) | def traverse(ob, method, params): class SupervisorTransport (line 473) | class SupervisorTransport(xmlrpclib.Transport): method __init__ (line 482) | def __init__(self, username=None, password=None, serverurl=None): method close (line 507) | def close(self): method request (line 512) | def request(self, host, handler, request_body, verbose=0): class UnixStreamHTTPConnection (line 553) | class UnixStreamHTTPConnection(httplib.HTTPConnection): method connect (line 554) | def connect(self): # pragma: no cover function gettags (line 559) | def gettags(comment):