Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore NameLoad ImportFrom alias alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Lambda arguments args defaults NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args defaults body Raise Call NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args defaults body Raise Call NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr TupleLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad Lambda arguments args defaults NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num BinOpAdd TupleLoad Str SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str decorator_list Assign NameStore Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpSub NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults Num TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults Num TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr CompareLt BinOpSub Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num Num finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num decorator_list For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Num NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Num NameLoad BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args NameParam NameParam defaults NameLoad Str keyword Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad keyword ListLoad TupleLoad Dict Str Str Num NameLoad Call NameLoad Num Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Return Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Num Lambda arguments args defaults NameLoad TupleLoad Dict Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num NameLoad AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr TupleLoad Str Str NameLoad NameLoad FunctionDef arguments args TupleStore NameStore NameStore NameStore defaults body Assign NameStore Call AttributeLoad Str attr NameLoad If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign AttributeStore NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body AugAssignAdd AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Num decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Delete SubscriptDel AttributeLoad NameLoad attr Slice Expr Call Call NameLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call Call NameLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Delete SubscriptDel AttributeLoad NameLoad attr Slice Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Delete SubscriptDel AttributeLoad NameLoad attr Slice Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Num BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Num BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list If BoolOpAnd CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Num BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Tests for lots of functionality provided by L{twisted.internet}.
 N/A os N/A sys N/A time twisted.trial unittest twisted.internet reactor protocol error abstract defer twisted.internet interfaces base N/A N/A twisted.internet ssl N/A N/A N/A ImportError N/A N/A ssl None N/A N/A ssl N/A N/A ssl supported N/A N/A ssl None twisted.internet.defer Deferred maybeDeferred twisted.python util runtime ThreePhaseEventTests N/A N/A unittest TestCase N/A N/A 
    Tests for the private implementation helpers for system event triggers.
     setUp N/A N/A self N/A N/A N/A 
        Create a trigger, an argument, and an event to be used by tests.
         N/A N/A self trigger N/A N/A N/A x N/A None N/A N/A self arg N/A object N/A N/A self event N/A N/A base _ThreePhaseEvent N/A test_addInvalidPhase N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.addTrigger} should raise L{KeyError} when called
        with an invalid phase.
         N/A N/A N/A self assertRaises KeyError N/A N/A self event addTrigger xxx N/A self trigger N/A self arg N/A test_addBeforeTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.addTrigger} should accept C{'before'} as a phase, a
        callable, and some arguments and add the callable with the arguments to
        the before list.
         N/A N/A N/A N/A self event addTrigger before N/A self trigger N/A self arg N/A N/A N/A self assertEqual N/A N/A self event before N/A N/A N/A self trigger N/A N/A self arg N/A N/A test_addDuringTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.addTrigger} should accept C{'during'} as a phase, a
        callable, and some arguments and add the callable with the arguments to
        the during list.
         N/A N/A N/A N/A self event addTrigger during N/A self trigger N/A self arg N/A N/A N/A self assertEqual N/A N/A self event during N/A N/A N/A self trigger N/A N/A self arg N/A N/A test_addAfterTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.addTrigger} should accept C{'after'} as a phase, a
        callable, and some arguments and add the callable with the arguments to
        the after list.
         N/A N/A N/A N/A self event addTrigger after N/A self trigger N/A self arg N/A N/A N/A self assertEqual N/A N/A self event after N/A N/A N/A self trigger N/A N/A self arg N/A N/A test_removeTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.removeTrigger} should accept an opaque object
        previously returned by L{_ThreePhaseEvent.addTrigger} and remove the
        associated trigger.
         N/A handle N/A N/A N/A self event addTrigger before N/A self trigger N/A self arg N/A N/A N/A N/A self event removeTrigger handle N/A N/A N/A self assertEqual N/A N/A self event before N/A N/A test_removeNonexistentTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.removeTrigger} should raise L{ValueError} when given
        an object not previously returned by L{_ThreePhaseEvent.addTrigger}.
         N/A N/A N/A self assertRaises ValueError N/A N/A self event removeTrigger N/A object N/A test_removeRemovedTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.removeTrigger} should raise L{ValueError} the second
        time it is called with an object returned by
        L{_ThreePhaseEvent.addTrigger}.
         N/A handle N/A N/A N/A self event addTrigger before N/A self trigger N/A self arg N/A N/A N/A N/A self event removeTrigger handle N/A N/A N/A self assertRaises ValueError N/A N/A self event removeTrigger handle N/A test_removeAlmostValidTrigger N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.removeTrigger} should raise L{ValueError} if it is
        given a trigger handle which resembles a valid trigger handle aside
        from its phase being incorrect.
         N/A N/A N/A self assertRaises KeyError N/A N/A self event removeTrigger N/A xxx N/A self trigger N/A N/A self arg N/A N/A test_fireEvent N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.fireEvent} should call I{before}, I{during}, and
        I{after} phase triggers in that order.
         N/A events N/A N/A N/A N/A N/A self event addTrigger after N/A events append N/A first after N/A N/A N/A N/A self event addTrigger during N/A events append N/A first during N/A N/A N/A N/A self event addTrigger before N/A events append N/A first before N/A N/A N/A N/A self event addTrigger before N/A events append N/A second before N/A N/A N/A N/A self event addTrigger during N/A events append N/A second during N/A N/A N/A N/A self event addTrigger after N/A events append N/A second after N/A N/A N/A self assertEqual events N/A N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A N/A first before N/A second before N/A first during N/A second during N/A first after N/A second after N/A test_asynchronousBefore N/A N/A self N/A N/A N/A 
        L{_ThreePhaseEvent.fireEvent} should wait for any L{Deferred} returned
        by a I{before} phase trigger before proceeding to I{during} events.
         N/A events N/A N/A beforeResult N/A Deferred N/A N/A N/A N/A self event addTrigger before N/A N/A N/A N/A beforeResult N/A N/A N/A N/A self event addTrigger during N/A events append during N/A N/A N/A N/A self event addTrigger after N/A events append after N/A N/A N/A self assertEqual events N/A N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A N/A N/A N/A beforeResult callback None N/A N/A N/A self assertEqual events N/A during after N/A test_beforeTriggerException N/A N/A self N/A N/A N/A 
        If a before-phase trigger raises a synchronous exception, it should be
        logged and the remaining triggers should be run.
         N/A events N/A DummyException N/A Exception N/A N/A N/A raisingTrigger N/A N/A N/A N/A N/A N/A DummyException N/A N/A N/A N/A N/A self event addTrigger before raisingTrigger N/A N/A N/A N/A self event addTrigger before N/A events append before N/A N/A N/A N/A self event addTrigger during N/A events append during N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A before during N/A errors N/A N/A self flushLoggedErrors DummyException N/A N/A N/A self assertEqual N/A len errors 1 N/A test_duringTriggerException N/A N/A self N/A N/A N/A 
        If a during-phase trigger raises a synchronous exception, it should be
        logged and the remaining triggers should be run.
         N/A events N/A DummyException N/A Exception N/A N/A N/A raisingTrigger N/A N/A N/A N/A N/A N/A DummyException N/A N/A N/A N/A N/A self event addTrigger during raisingTrigger N/A N/A N/A N/A self event addTrigger during N/A events append during N/A N/A N/A N/A self event addTrigger after N/A events append after N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A during after N/A errors N/A N/A self flushLoggedErrors DummyException N/A N/A N/A self assertEqual N/A len errors 1 N/A test_synchronousRemoveAlreadyExecutedBefore N/A N/A self N/A N/A N/A 
        If a before-phase trigger tries to remove another before-phase trigger
        which has already run, a warning should be emitted.
         N/A events N/A removeTrigger N/A N/A N/A N/A N/A N/A N/A N/A self event removeTrigger beforeHandle N/A N/A beforeHandle N/A N/A N/A self event addTrigger before N/A events append N/A first before N/A N/A N/A N/A self event addTrigger before removeTrigger N/A N/A N/A N/A self event addTrigger before N/A events append N/A second before N/A N/A N/A self assertWarns DeprecationWarning Removing already-fired system event triggers will raise an exception in a future version of Twisted. __file__ N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A N/A first before N/A second before N/A test_synchronousRemovePendingBefore N/A N/A self N/A N/A N/A 
        If a before-phase trigger removes another before-phase trigger which
        has not yet run, the removed trigger should not be run.
         N/A events N/A N/A N/A N/A N/A self event addTrigger before N/A N/A N/A N/A N/A N/A N/A self event removeTrigger beforeHandle N/A beforeHandle N/A N/A N/A self event addTrigger before N/A events append N/A first before N/A N/A N/A N/A self event addTrigger before N/A events append N/A second before N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A N/A second before N/A test_synchronousBeforeRemovesDuring N/A N/A self N/A N/A N/A 
        If a before-phase trigger removes a during-phase trigger, the
        during-phase trigger should not be run.
         N/A events N/A N/A N/A N/A N/A self event addTrigger before N/A N/A N/A N/A N/A N/A N/A self event removeTrigger duringHandle N/A duringHandle N/A N/A N/A self event addTrigger during N/A events append during N/A N/A N/A N/A self event addTrigger after N/A events append after N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A after N/A test_asynchronousBeforeRemovesDuring N/A N/A self N/A N/A N/A 
        If a before-phase trigger returns a L{Deferred} and later removes a
        during-phase trigger before the L{Deferred} fires, the during-phase
        trigger should not be run.
         N/A events N/A N/A beforeResult N/A Deferred N/A N/A N/A N/A self event addTrigger before N/A N/A N/A N/A beforeResult N/A duringHandle N/A N/A N/A self event addTrigger during N/A events append during N/A N/A N/A N/A self event addTrigger after N/A events append after N/A N/A N/A N/A self event fireEvent N/A N/A N/A N/A self event removeTrigger duringHandle N/A N/A N/A beforeResult callback None N/A N/A N/A self assertEqual events N/A after N/A test_synchronousBeforeRemovesConspicuouslySimilarDuring N/A N/A self N/A N/A N/A 
        If a before-phase trigger removes a during-phase trigger which is
        identical to an already-executed before-phase trigger aside from their
        phases, no warning should be emitted and the during-phase trigger
        should not be run.
         N/A events N/A trigger N/A N/A N/A N/A N/A N/A N/A events append trigger N/A N/A N/A N/A N/A self event addTrigger before trigger N/A N/A N/A N/A self event addTrigger before N/A N/A N/A N/A N/A N/A N/A self event removeTrigger duringTrigger N/A duringTrigger N/A N/A N/A self event addTrigger during trigger N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A trigger N/A test_synchronousRemovePendingDuring N/A N/A self N/A N/A N/A 
        If a during-phase trigger removes another during-phase trigger which
        has not yet run, the removed trigger should not be run.
         N/A events N/A N/A N/A N/A N/A self event addTrigger during N/A N/A N/A N/A N/A N/A N/A self event removeTrigger duringHandle N/A duringHandle N/A N/A N/A self event addTrigger during N/A events append N/A first during N/A N/A N/A N/A self event addTrigger during N/A events append N/A second during N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A N/A second during N/A test_triggersRunOnce N/A N/A self N/A N/A N/A 
        A trigger should only be called on the first call to
        L{_ThreePhaseEvent.fireEvent}.
         N/A events N/A N/A N/A N/A N/A self event addTrigger before N/A events append before N/A N/A N/A N/A self event addTrigger during N/A events append during N/A N/A N/A N/A self event addTrigger after N/A events append after N/A N/A N/A N/A self event fireEvent N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A before during after N/A test_finishedBeforeTriggersCleared N/A N/A self N/A N/A N/A 
        The temporary list L{_ThreePhaseEvent.finishedBefore} should be emptied
        and the state reset to C{'BASE'} before the first during-phase trigger
        executes.
         N/A events N/A duringTrigger N/A N/A N/A N/A N/A N/A N/A events append during N/A N/A N/A self assertEqual N/A N/A self event finishedBefore N/A N/A N/A N/A self assertEqual N/A N/A self event state BASE N/A N/A N/A N/A N/A self event addTrigger before N/A events append before N/A N/A N/A N/A self event addTrigger during duringTrigger N/A N/A N/A N/A self event fireEvent N/A N/A N/A self assertEqual events N/A before during N/A N/A SystemEventTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for the reactor's implementation of the C{fireSystemEvent},
    C{addSystemEventTrigger}, and C{removeSystemEventTrigger} methods of the
    L{IReactorCore} interface.

    @ivar triggers: A list of the handles to triggers which have been added to
        the reactor.
     setUp N/A N/A self N/A N/A N/A 
        Create an empty list in which to store trigger handles.
         N/A N/A self triggers N/A N/A tearDown N/A N/A self N/A N/A N/A 
        Remove all remaining triggers from the reactor.
         N/A N/A self triggers N/A N/A trigger N/A N/A N/A self triggers pop N/A N/A N/A N/A N/A reactor removeSystemEventTrigger trigger N/A N/A N/A N/A ValueError KeyError N/A N/A N/A addTrigger N/A N/A self event phase func N/A N/A N/A 
        Add a trigger to the reactor and remember it in C{self.triggers}.
         N/A t N/A N/A reactor addSystemEventTrigger event phase func N/A N/A N/A N/A self triggers append t N/A t N/A removeTrigger N/A N/A self trigger N/A N/A N/A 
        Remove a trigger by its handle from the reactor and from
        C{self.triggers}.
         N/A N/A N/A reactor removeSystemEventTrigger trigger N/A N/A N/A N/A self triggers remove trigger N/A _addSystemEventTriggerTest N/A N/A self phase N/A N/A N/A eventType test N/A events N/A trigger N/A N/A N/A N/A N/A N/A N/A events append None N/A N/A N/A N/A self addTrigger phase eventType trigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A None N/A test_beforePhase N/A N/A self N/A N/A N/A 
        L{IReactorCore.addSystemEventTrigger} should accept the C{'before'}
        phase and not call the given object until the right event is fired.
         N/A N/A N/A self _addSystemEventTriggerTest before N/A test_duringPhase N/A N/A self N/A N/A N/A 
        L{IReactorCore.addSystemEventTrigger} should accept the C{'during'}
        phase and not call the given object until the right event is fired.
         N/A N/A N/A self _addSystemEventTriggerTest during N/A test_afterPhase N/A N/A self N/A N/A N/A 
        L{IReactorCore.addSystemEventTrigger} should accept the C{'after'}
        phase and not call the given object until the right event is fired.
         N/A N/A N/A self _addSystemEventTriggerTest after N/A test_unknownPhase N/A N/A self N/A N/A N/A 
        L{IReactorCore.addSystemEventTrigger} should reject phases other than
        C{'before'}, C{'during'}, or C{'after'}.
         N/A eventType test N/A N/A N/A self assertRaises KeyError N/A self addTrigger xxx eventType N/A N/A N/A N/A None N/A test_beforePreceedsDuring N/A N/A self N/A N/A N/A 
        L{IReactorCore.addSystemEventTrigger} should call triggers added to the
        C{'before'} phase before it calls triggers added to the C{'during'}
        phase.
         N/A eventType test N/A events N/A beforeTrigger N/A N/A N/A N/A N/A N/A N/A events append before N/A duringTrigger N/A N/A N/A N/A N/A N/A N/A events append during N/A N/A N/A N/A self addTrigger before eventType beforeTrigger N/A N/A N/A self addTrigger during eventType duringTrigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A before during N/A test_duringPreceedsAfter N/A N/A self N/A N/A N/A 
        L{IReactorCore.addSystemEventTrigger} should call triggers added to the
        C{'during'} phase before it calls triggers added to the C{'after'}
        phase.
         N/A eventType test N/A events N/A duringTrigger N/A N/A N/A N/A N/A N/A N/A events append during N/A afterTrigger N/A N/A N/A N/A N/A N/A N/A events append after N/A N/A N/A N/A self addTrigger during eventType duringTrigger N/A N/A N/A self addTrigger after eventType afterTrigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A during after N/A test_beforeReturnsDeferred N/A N/A self N/A N/A N/A 
        If a trigger added to the C{'before'} phase of an event returns a
        L{Deferred}, the C{'during'} phase should be delayed until it is called
        back.
         N/A triggerDeferred N/A Deferred N/A eventType test N/A events N/A beforeTrigger N/A N/A N/A N/A N/A triggerDeferred N/A duringTrigger N/A N/A N/A N/A N/A N/A N/A events append during N/A N/A N/A N/A self addTrigger before eventType beforeTrigger N/A N/A N/A self addTrigger during eventType duringTrigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A N/A N/A N/A triggerDeferred callback None N/A N/A N/A self assertEqual events N/A during N/A test_multipleBeforeReturnDeferred N/A N/A self N/A N/A N/A 
        If more than one trigger added to the C{'before'} phase of an event
        return L{Deferred}s, the C{'during'} phase should be delayed until they
        are all called back.
         N/A firstDeferred N/A Deferred N/A secondDeferred N/A Deferred N/A eventType test N/A events N/A firstBeforeTrigger N/A N/A N/A N/A N/A firstDeferred N/A secondBeforeTrigger N/A N/A N/A N/A N/A secondDeferred N/A duringTrigger N/A N/A N/A N/A N/A N/A N/A events append during N/A N/A N/A N/A self addTrigger before eventType firstBeforeTrigger N/A N/A N/A self addTrigger before eventType secondBeforeTrigger N/A N/A N/A self addTrigger during eventType duringTrigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A N/A N/A N/A firstDeferred callback None N/A N/A N/A self assertEqual events N/A N/A N/A N/A secondDeferred callback None N/A N/A N/A self assertEqual events N/A during N/A test_subsequentBeforeTriggerFiresPriorBeforeDeferred N/A N/A self N/A N/A N/A 
        If a trigger added to the C{'before'} phase of an event calls back a
        L{Deferred} returned by an earlier trigger in the C{'before'} phase of
        the same event, the remaining C{'before'} triggers for that event
        should be run and any further L{Deferred}s waited on before proceeding
        to the C{'during'} events.
         N/A eventType test N/A events N/A N/A firstDeferred N/A Deferred N/A secondDeferred N/A Deferred firstBeforeTrigger N/A N/A N/A N/A N/A firstDeferred N/A secondBeforeTrigger N/A N/A N/A N/A N/A N/A N/A firstDeferred callback None N/A thirdBeforeTrigger N/A N/A N/A N/A N/A N/A N/A events append before N/A secondDeferred N/A duringTrigger N/A N/A N/A N/A N/A N/A N/A events append during N/A N/A N/A N/A self addTrigger before eventType firstBeforeTrigger N/A N/A N/A self addTrigger before eventType secondBeforeTrigger N/A N/A N/A self addTrigger before eventType thirdBeforeTrigger N/A N/A N/A self addTrigger during eventType duringTrigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A before N/A N/A N/A secondDeferred callback None N/A N/A N/A self assertEqual events N/A before during N/A test_removeSystemEventTrigger N/A N/A self N/A N/A N/A 
        A trigger removed with L{IReactorCore.removeSystemEventTrigger} should
        not be called when the event fires.
         N/A eventType test N/A events N/A firstBeforeTrigger N/A N/A N/A N/A N/A N/A N/A events append first N/A secondBeforeTrigger N/A N/A N/A N/A N/A N/A N/A events append second N/A N/A N/A N/A self addTrigger before eventType firstBeforeTrigger N/A N/A N/A self removeTrigger N/A N/A self addTrigger before eventType secondBeforeTrigger N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent eventType N/A N/A N/A self assertEqual events N/A first N/A test_removeNonExistentSystemEventTrigger N/A N/A self N/A N/A N/A 
        Passing an object to L{IReactorCore.removeSystemEventTrigger} which was
        not returned by a previous call to
        L{IReactorCore.addSystemEventTrigger} or which has already been passed
        to C{removeSystemEventTrigger} should result in L{TypeError},
        L{KeyError}, or L{ValueError} being raised.
         N/A b N/A N/A self addTrigger during test N/A N/A N/A N/A None N/A N/A N/A self removeTrigger b N/A N/A N/A self assertRaises TypeError N/A reactor removeSystemEventTrigger None N/A N/A N/A self assertRaises ValueError N/A reactor removeSystemEventTrigger b N/A N/A N/A self assertRaises KeyError N/A reactor removeSystemEventTrigger N/A N/A b N/A 0 N/A N/A xxx N/A N/A b N/A 1 N/A 1 N/A test_interactionBetweenDifferentEvents N/A N/A self N/A N/A N/A 
        L{IReactorCore.fireSystemEvent} should behave the same way for a
        particular system event regardless of whether Deferreds are being
        waited on for a different system event.
         N/A events N/A N/A firstEvent first-event N/A firstDeferred N/A Deferred beforeFirstEvent N/A N/A N/A N/A N/A N/A N/A events append N/A before first N/A firstDeferred N/A afterFirstEvent N/A N/A N/A N/A N/A N/A N/A events append N/A after first N/A N/A secondEvent second-event N/A secondDeferred N/A Deferred beforeSecondEvent N/A N/A N/A N/A N/A N/A N/A events append N/A before second N/A secondDeferred N/A afterSecondEvent N/A N/A N/A N/A N/A N/A N/A events append N/A after second N/A N/A N/A N/A self addTrigger before firstEvent beforeFirstEvent N/A N/A N/A self addTrigger after firstEvent afterFirstEvent N/A N/A N/A self addTrigger before secondEvent beforeSecondEvent N/A N/A N/A self addTrigger after secondEvent afterSecondEvent N/A N/A N/A self assertEqual events N/A N/A N/A N/A reactor fireSystemEvent firstEvent N/A N/A N/A self assertEqual events N/A N/A before first N/A N/A N/A reactor fireSystemEvent secondEvent N/A N/A N/A self assertEqual events N/A N/A before first N/A before second N/A N/A N/A firstDeferred callback None N/A N/A N/A self assertEqual events N/A N/A before first N/A before second N/A after first N/A N/A N/A secondDeferred callback None N/A N/A N/A self assertEqual events N/A N/A before first N/A before second N/A after first N/A after second N/A N/A TimeTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for the IReactorTime part of the reactor.
     test_seconds N/A N/A self N/A N/A N/A 
        L{twisted.internet.reactor.seconds} should return something
        like a number.

        1. This test specifically does not assert any relation to the
           "system time" as returned by L{time.time} or
           L{twisted.python.runtime.seconds}, because at some point we
           may find a better option for scheduling calls than
           wallclock-time.
        2. This test *also* does not assert anything about the type of
           the result, because operations may not return ints or
           floats: For example, datetime-datetime == timedelta(0).
         N/A now N/A N/A reactor seconds N/A N/A N/A self assertEquals N/A N/A now now now now N/A test_callLaterUsesReactorSecondsInDelayedCall N/A N/A self N/A N/A N/A 
        L{reactor.callLater} should use the reactor's seconds factory
        to produce the time at which the DelayedCall will be called.
         N/A oseconds N/A reactor seconds N/A N/A reactor seconds N/A N/A N/A N/A 100 N/A N/A N/A call N/A N/A reactor callLater 5 N/A N/A N/A N/A None N/A N/A N/A self assertEquals N/A N/A call getTime 105 N/A N/A N/A reactor seconds oseconds N/A test_callLaterUsesReactorSecondsAsDelayedCallSecondsFactory N/A N/A self N/A N/A N/A 
        L{reactor.callLater} should propagate its own seconds factory
        to the DelayedCall to use as its own seconds factory.
         N/A oseconds N/A reactor seconds N/A N/A reactor seconds N/A N/A N/A N/A 100 N/A N/A N/A call N/A N/A reactor callLater 5 N/A N/A N/A N/A None N/A N/A N/A self assertEquals N/A N/A call seconds 100 N/A N/A N/A reactor seconds oseconds N/A test_callLater N/A N/A self N/A N/A N/A 
        Test that a DelayedCall really calls the function it is
        supposed to call.
         N/A d N/A Deferred N/A N/A N/A reactor callLater 0 N/A d callback None N/A N/A N/A d addCallback N/A self assertEqual None N/A d N/A test_cancelDelayedCall N/A N/A self N/A N/A N/A 
        Test that when a DelayedCall is cancelled it does not run.
         N/A called N/A function N/A N/A N/A N/A N/A N/A N/A called append None N/A N/A call N/A N/A reactor callLater 0 function N/A N/A N/A call cancel N/A d N/A Deferred check N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertEqual called N/A N/A N/A N/A N/A N/A N/A d errback N/A N/A N/A N/A d callback None N/A N/A N/A N/A reactor callLater 0 N/A reactor callLater 0 check N/A d N/A test_cancelCancelledDelayedCall N/A N/A self N/A N/A N/A 
        Test that cancelling a DelayedCall which has already been cancelled
        raises the appropriate exception.
         N/A call N/A N/A reactor callLater 0 N/A N/A N/A N/A None N/A N/A N/A call cancel N/A N/A N/A self assertRaises N/A error AlreadyCancelled N/A call cancel N/A test_cancelCalledDelayedCallSynchronous N/A N/A self N/A N/A N/A 
        Test that cancelling a DelayedCall in the DelayedCall's function as
        that function is being invoked by the DelayedCall raises the
        appropriate exception.
         N/A d N/A Deferred later N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertRaises N/A error AlreadyCalled N/A call cancel N/A N/A N/A N/A N/A N/A d errback N/A N/A N/A N/A d callback None N/A N/A call N/A N/A reactor callLater 0 later N/A d N/A test_cancelCalledDelayedCallAsynchronous N/A N/A self N/A N/A N/A 
        Test that cancelling a DelayedCall after it has run its function
        raises the appropriate exception.
         N/A d N/A Deferred check N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertRaises N/A error AlreadyCalled N/A call cancel N/A N/A N/A N/A N/A N/A d errback N/A N/A N/A N/A d callback None N/A later N/A N/A N/A N/A N/A N/A N/A reactor callLater 0 check N/A N/A call N/A N/A reactor callLater 0 later N/A d N/A testCallLaterTime N/A N/A self N/A N/A N/A d N/A N/A reactor callLater 10 N/A N/A N/A N/A None N/A N/A N/A N/A N/A self failUnless N/A N/A N/A N/A d getTime N/A N/A N/A time time 10 1 N/A N/A N/A N/A d cancel N/A testCallLaterOrder N/A N/A self N/A N/A N/A l N/A N/A l2 N/A f N/A N/A x N/A N/A N/A N/A N/A l append x N/A f2 N/A N/A x N/A N/A N/A N/A N/A l2 append x N/A done N/A N/A N/A N/A N/A N/A N/A self assertEquals l N/A range 20 N/A done2 N/A N/A N/A N/A N/A N/A N/A self assertEquals l2 N/A range 10 N/A N/A n N/A range 10 N/A N/A N/A N/A reactor callLater 0 f n N/A n N/A range 10 N/A N/A N/A N/A reactor callLater 0 f N/A n 10 N/A N/A N/A reactor callLater 0.1 f2 n N/A N/A N/A reactor callLater 0 done N/A N/A N/A reactor callLater 0.1 done2 N/A d N/A Deferred N/A N/A N/A reactor callLater 0.2 N/A d callback None N/A d N/A N/A N/A testCallLaterOrder todo See bug 1396 N/A N/A testCallLaterOrder skip Trial bug, todo doesn't work! See bug 1397 testCallLaterOrder2 N/A N/A self N/A N/A seconds N/A N/A N/A N/A N/A N/A int N/A N/A time time N/A N/A base_original N/A base seconds N/A runtime_original N/A runtime seconds N/A N/A base seconds seconds N/A N/A runtime seconds seconds cleanup N/A N/A x N/A N/A N/A N/A runtime seconds runtime_original N/A N/A base seconds base_original N/A x N/A N/A N/A N/A N/A maybeDeferred N/A self testCallLaterOrder addBoth cleanup N/A N/A N/A testCallLaterOrder2 todo See bug 1396 N/A N/A testCallLaterOrder2 skip Trial bug, todo doesn't work! See bug 1397 testDelayedCallStringification N/A N/A self N/A N/A N/A dc N/A N/A reactor callLater 0 N/A N/A N/A x y N/A None x y 10 N/A N/A str dc N/A N/A N/A dc reset 5 N/A N/A str dc N/A N/A N/A dc cancel N/A N/A str dc N/A dc N/A N/A reactor callLater 0 N/A N/A N/A N/A None x N/A N/A N/A hello world 10j reactor N/A range 10 N/A N/A str dc N/A N/A N/A dc cancel N/A N/A str dc calledBack N/A N/A ignored N/A N/A N/A N/A str dc N/A N/A d N/A N/A N/A Deferred addCallback calledBack N/A dc N/A N/A reactor callLater 0 N/A d callback None N/A N/A str dc N/A d N/A testDelayedCallSecondsOverride N/A N/A self N/A N/A N/A 
        Test that the C{seconds} argument to DelayedCall gets used instead of
        the default timing function, if it is not None.
         seconds N/A N/A N/A N/A N/A 10 N/A N/A dc N/A N/A base DelayedCall 5 N/A N/A N/A N/A None N/A N/A N/A N/A N/A dc N/A None N/A N/A N/A dc N/A None seconds N/A N/A N/A self assertEquals N/A N/A dc getTime 5 N/A N/A N/A dc reset 3 N/A N/A N/A self assertEquals N/A N/A dc getTime 13 N/A N/A CallFromThreadTests N/A N/A unittest TestCase N/A testWakeUp N/A N/A self N/A N/A N/A d N/A Deferred wake N/A N/A N/A N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A reactor callFromThread N/A d callback None N/A N/A N/A N/A reactor callInThread wake N/A d N/A N/A N/A N/A N/A interfaces IReactorThreads reactor None None N/A N/A N/A testWakeUp skip Nothing to wake up for without thread support _stopCallFromThreadCallback N/A N/A self N/A N/A N/A N/A self stopped True N/A _callFromThreadCallback N/A N/A self d N/A N/A N/A N/A N/A reactor callFromThread N/A self _callFromThreadCallback2 d N/A N/A N/A reactor callLater 0 N/A self _stopCallFromThreadCallback N/A _callFromThreadCallback2 N/A N/A self d N/A N/A N/A N/A N/A N/A N/A self assert_ N/A self stopped N/A N/A N/A N/A N/A N/A d errback N/A N/A N/A N/A d callback None N/A testCallFromThreadStops N/A N/A self N/A N/A N/A 
        Ensure that callFromThread from inside a callFromThread
        callback doesn't sit in an infinite loop and lets other
        things happen too.
         N/A N/A self stopped False N/A d N/A N/A defer Deferred N/A N/A N/A reactor callFromThread N/A self _callFromThreadCallback d N/A d N/A N/A DelayedTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self finished 0 N/A N/A self counter 0 N/A N/A self timers N/A N/A N/A self deferred N/A N/A defer Deferred N/A tearDown N/A N/A self N/A N/A N/A t N/A N/A N/A self timers values N/A N/A N/A N/A t cancel N/A checkTimers N/A N/A self N/A N/A N/A l1 N/A N/A N/A self timers values N/A l2 N/A list N/A N/A reactor getDelayedCalls N/A missing N/A N/A dc l1 N/A N/A N/A dc l2 N/A N/A N/A N/A missing append dc N/A missing N/A N/A N/A self finished 1 N/A N/A N/A self failIf missing N/A Should have been missing no calls, instead was missing  N/A repr missing N/A callback N/A N/A self tag N/A N/A N/A N/A N/A self timers N/A tag N/A N/A N/A self checkTimers N/A addCallback N/A N/A self tag N/A N/A N/A N/A N/A self callback tag N/A N/A N/A self addTimer 15 N/A self callback N/A done N/A N/A self tag N/A N/A N/A N/A self finished 1 N/A N/A N/A self callback tag N/A N/A N/A N/A self deferred callback None N/A addTimer N/A N/A self when callback N/A N/A N/A N/A N/A self timers N/A N/A self counter N/A N/A reactor callLater N/A when 0.01 callback N/A self counter N/A N/A self counter 1 N/A N/A N/A self checkTimers N/A testGetDelayedCalls N/A N/A self N/A N/A N/A N/A N/A hasattr reactor getDelayedCalls N/A N/A N/A N/A N/A self checkTimers N/A N/A N/A self addTimer 35 N/A self done N/A N/A N/A self addTimer 20 N/A self callback N/A N/A N/A self addTimer 30 N/A self callback N/A which N/A self counter N/A N/A N/A self addTimer 29 N/A self callback N/A N/A N/A self addTimer 25 N/A self addCallback N/A N/A N/A self addTimer 26 N/A self callback N/A N/A N/A N/A N/A self timers N/A which cancel N/A N/A N/A self timers N/A which N/A N/A N/A self checkTimers N/A N/A N/A N/A self deferred addCallback N/A N/A N/A x N/A N/A N/A self checkTimers N/A N/A self deferred N/A test_active N/A N/A self N/A N/A N/A 
        L{IDelayedCall.active} returns False once the call has run.
         N/A dcall N/A N/A reactor callLater 0.01 N/A N/A self deferred callback True N/A N/A N/A self assertEquals N/A N/A dcall active True checkDeferredCall N/A N/A success N/A N/A N/A N/A N/A self assertEquals N/A N/A dcall active False N/A success N/A N/A N/A N/A N/A self deferred addCallback checkDeferredCall N/A N/A self deferred N/A N/A N/A resolve_helper 
import %(reactor)s
%(reactor)s.install()
from twisted.internet import reactor

class Foo:
    def __init__(self):
        reactor.callWhenRunning(self.start)
        self.timer = reactor.callLater(3, self.failed)
    def start(self):
        reactor.resolve('localhost').addBoth(self.done)
    def done(self, res):
        print 'done', res
        reactor.stop()
    def failed(self):
        print 'failed'
        self.timer = None
        reactor.stop()
f = Foo()
reactor.run()
 ChildResolveProtocol N/A N/A protocol ProcessProtocol N/A __init__ N/A N/A self onCompletion N/A N/A N/A N/A self onCompletion onCompletion N/A connectionMade N/A N/A self N/A N/A N/A N/A self output N/A N/A N/A self error N/A N/A outReceived N/A N/A self out N/A N/A N/A N/A N/A N/A self output append out N/A errReceived N/A N/A self err N/A N/A N/A N/A N/A N/A self error append err N/A processEnded N/A N/A self reason N/A N/A N/A N/A N/A N/A self onCompletion callback N/A reason N/A self output N/A self error N/A N/A self onCompletion None N/A N/A Resolve N/A N/A unittest TestCase N/A testChildResolve N/A N/A self N/A N/A N/A helperPath N/A N/A N/A os path abspath N/A N/A self mktemp N/A helperFile N/A open helperPath w N/A reactorName N/A reactor __module__ N/A N/A N/A helperFile write N/A resolve_helper N/A reactor reactorName N/A N/A N/A helperFile close N/A env N/A N/A N/A os environ copy N/A N/A env N/A PYTHONPATH N/A N/A N/A os pathsep join N/A sys path N/A helperDeferred N/A Deferred N/A helperProto N/A ChildResolveProtocol helperDeferred N/A N/A N/A reactor spawnProcess helperProto N/A sys executable N/A python -u helperPath env cbFinished N/A N/A N/A reason output error N/A N/A N/A output N/A N/A join output N/A N/A output done 127.0.0.1
 N/A N/A N/A N/A self fail N/A The child process failed to produce the desired results:
   Reason for termination was: %r
   Output stream was: %r
   Error stream was: %r
 N/A N/A N/A reason getErrorMessage output N/A N/A join error N/A N/A N/A N/A helperDeferred addCallback cbFinished N/A helperDeferred N/A N/A N/A N/A N/A N/A interfaces IReactorProcess reactor None N/A N/A N/A Resolve skip cannot run test: reactor doesn't support IReactorProcess CallFromThreadTestCase N/A N/A unittest TestCase N/A N/A 
    Task scheduling from threads tests.
     N/A N/A N/A N/A interfaces IReactorThreads reactor None None N/A N/A skip Nothing to test without thread support setUp N/A N/A self N/A N/A N/A N/A self counter 0 N/A N/A self deferred N/A Deferred N/A schedule N/A N/A self N/A args kwargs N/A N/A 
        Override in subclasses.
         N/A N/A N/A reactor callFromThread args kwargs N/A test_lotsOfThreadsAreScheduledCorrectly N/A N/A self N/A N/A N/A 
        L{IReactorThreads.callFromThread} can be used to schedule a large
        number of calls in the reactor thread.
         addAndMaybeFinish N/A N/A N/A N/A N/A N/A self counter 1 N/A N/A N/A self counter 100 N/A N/A N/A N/A N/A self deferred callback True N/A N/A i N/A xrange 100 N/A N/A N/A N/A self schedule addAndMaybeFinish N/A N/A self deferred N/A test_threadsAreRunInScheduledOrder N/A N/A self N/A N/A N/A 
        Callbacks should be invoked in the order they were scheduled.
         N/A order N/A check N/A N/A _ N/A N/A N/A N/A N/A self assertEquals order N/A 1 2 3 N/A N/A N/A N/A N/A self deferred addCallback check N/A N/A N/A self schedule N/A order append 1 N/A N/A N/A self schedule N/A order append 2 N/A N/A N/A self schedule N/A order append 3 N/A N/A N/A self schedule N/A reactor callFromThread N/A N/A self deferred callback None N/A N/A self deferred N/A test_scheduledThreadsNotRunUntilReactorRuns N/A N/A self N/A N/A N/A 
        Scheduled tasks should not be run until the reactor starts running.
         incAndFinish N/A N/A N/A N/A N/A N/A self counter 1 N/A N/A N/A N/A self deferred callback True N/A N/A N/A N/A self schedule incAndFinish N/A N/A N/A self assertEquals N/A self counter 0 N/A N/A self deferred N/A N/A MyProtocol N/A N/A protocol Protocol N/A N/A 
    Sample protocol.
     N/A MyFactory N/A N/A protocol Factory N/A N/A 
    Sample factory.
     N/A protocol MyProtocol N/A ProtocolTestCase N/A N/A unittest TestCase N/A testFactory N/A N/A self N/A N/A N/A factory N/A MyFactory N/A protocol N/A N/A factory buildProtocol None N/A N/A N/A self assertEquals N/A protocol factory factory N/A N/A N/A self assert_ N/A isinstance protocol N/A factory protocol N/A N/A DummyProducer N/A object N/A N/A 
    Very uninteresting producer implementation used by tests to ensure the
    right methods are called by the consumer with which it is registered.

    @type events: C{list} of C{str}
    @ivar events: The producer/consumer related events which have happened to
    this producer.  Strings in this list may be C{'resume'}, C{'stop'}, or
    C{'pause'}.  Elements are added as they occur.
     __init__ N/A N/A self N/A N/A N/A N/A self events N/A N/A resumeProducing N/A N/A self N/A N/A N/A N/A N/A N/A self events append resume N/A stopProducing N/A N/A self N/A N/A N/A N/A N/A N/A self events append stop N/A pauseProducing N/A N/A self N/A N/A N/A N/A N/A N/A self events append pause N/A N/A SillyDescriptor N/A N/A abstract FileDescriptor N/A N/A 
    A descriptor whose data buffer gets filled very fast.

    Useful for testing FileDescriptor's IConsumer interface, since
    the data buffer fills as soon as at least four characters are
    written to it, and gets emptied in a single doWrite() cycle.
     N/A bufferSize 3 N/A connected True writeSomeData N/A N/A self data N/A N/A N/A 
        Always write all data.
         N/A N/A len data N/A startWriting N/A N/A self N/A N/A N/A 
        Do nothing: bypass the reactor.
         N/A N/A stopWriting startWriting N/A ReentrantProducer N/A DummyProducer N/A N/A 
    Similar to L{DummyProducer}, but with a resumeProducing method which calls
    back into an L{IConsumer} method of the consumer against which it is
    registered.

    @ivar consumer: The consumer with which this producer has been or will
    be registered.

    @ivar methodName: The name of the method to call on the consumer inside
    C{resumeProducing}.

    @ivar methodArgs: The arguments to pass to the consumer method invoked in
    C{resumeProducing}.
     __init__ N/A N/A self consumer methodName N/A methodArgs N/A N/A N/A N/A N/A super ReentrantProducer self __init__ N/A N/A self consumer consumer N/A N/A self methodName methodName N/A N/A self methodArgs methodArgs N/A resumeProducing N/A N/A self N/A N/A N/A N/A N/A N/A super ReentrantProducer self resumeProducing N/A N/A N/A getattr N/A self consumer N/A self methodName N/A self methodArgs N/A N/A TestProducer N/A N/A unittest TestCase N/A N/A 
    Test abstract.FileDescriptor's consumer interface.
     test_doubleProducer N/A N/A self N/A N/A N/A 
        Verify that registering a non-streaming producer invokes its
        resumeProducing() method and that you can only register one producer
        at a time.
         N/A fd N/A N/A abstract FileDescriptor N/A N/A fd connected 1 N/A dp N/A DummyProducer N/A N/A N/A fd registerProducer dp 0 N/A N/A N/A self assertEquals N/A dp events N/A resume N/A N/A N/A self assertRaises RuntimeError N/A fd registerProducer N/A DummyProducer 0 N/A test_unconnectedFileDescriptor N/A N/A self N/A N/A N/A 
        Verify that registering a producer when the connection has already
        been closed invokes its stopProducing() method.
         N/A fd N/A N/A abstract FileDescriptor N/A N/A fd disconnected 1 N/A dp N/A DummyProducer N/A N/A N/A fd registerProducer dp 0 N/A N/A N/A self assertEquals N/A dp events N/A stop N/A _dontPausePullConsumerTest N/A N/A self methodName N/A N/A N/A descriptor N/A SillyDescriptor N/A producer N/A DummyProducer N/A N/A N/A descriptor registerProducer producer streaming False N/A N/A N/A self assertEqual N/A producer events N/A resume N/A N/A N/A producer events N/A N/A N/A N/A getattr descriptor methodName 1234 N/A N/A N/A self assertEqual N/A producer events N/A N/A test_dontPausePullConsumerOnWrite N/A N/A self N/A N/A N/A 
        Verify that FileDescriptor does not call producer.pauseProducing() on a
        non-streaming pull producer in response to a L{IConsumer.write} call
        which results in a full write buffer. Issue #2286.
         N/A N/A N/A self _dontPausePullConsumerTest write N/A test_dontPausePullConsumerOnWriteSequence N/A N/A self N/A N/A N/A 
        Like L{test_dontPausePullConsumerOnWrite}, but for a call to
        C{writeSequence} rather than L{IConsumer.write}.

        C{writeSequence} is not part of L{IConsumer}, but
        L{abstract.FileDescriptor} has supported consumery behavior in response
        to calls to L{writeSequence} forever.
         N/A N/A N/A self _dontPausePullConsumerTest writeSequence N/A _reentrantStreamingProducerTest N/A N/A self methodName N/A N/A N/A descriptor N/A SillyDescriptor N/A producer N/A ReentrantProducer descriptor methodName spam N/A N/A N/A descriptor registerProducer producer streaming True N/A N/A N/A getattr descriptor methodName spam N/A N/A N/A self assertEqual N/A producer events N/A pause N/A N/A N/A producer events N/A N/A N/A N/A descriptor doWrite N/A N/A N/A self assertEqual N/A producer events N/A resume pause N/A N/A N/A producer events N/A N/A N/A N/A descriptor doWrite N/A N/A N/A self assertEqual N/A producer events N/A resume pause N/A test_reentrantStreamingProducerUsingWrite N/A N/A self N/A N/A N/A 
        Verify that FileDescriptor tracks producer's paused state correctly.
        Issue #811, fixed in revision r12857.
         N/A N/A N/A self _reentrantStreamingProducerTest write N/A test_reentrantStreamingProducerUsingWriteSequence N/A N/A self N/A N/A N/A 
        Like L{test_reentrantStreamingProducerUsingWrite}, but for calls to
        C{writeSequence}.

        C{writeSequence} is B{not} part of L{IConsumer}, however
        C{abstract.FileDescriptor} has supported consumery behavior in response
        to calls to C{writeSequence} forever.
         N/A N/A N/A self _reentrantStreamingProducerTest writeSequence N/A N/A PortStringification N/A N/A unittest TestCase N/A N/A N/A N/A N/A interfaces IReactorTCP reactor None None N/A testTCP N/A N/A self N/A N/A N/A p N/A N/A reactor listenTCP 0 N/A N/A protocol ServerFactory N/A portNo N/A N/A N/A p getHost port N/A N/A N/A self assertNotEqual N/A N/A N/A str p find N/A str portNo -1 N/A %d not found in %s N/A portNo p N/A N/A N/A p stopListening N/A N/A N/A N/A N/A interfaces IReactorUDP reactor None None N/A testUDP N/A N/A self N/A N/A N/A p N/A N/A reactor listenUDP 0 N/A N/A protocol DatagramProtocol N/A portNo N/A N/A N/A p getHost port N/A N/A N/A self assertNotEqual N/A N/A N/A str p find N/A str portNo -1 N/A %d not found in %s N/A portNo p N/A N/A N/A p stopListening N/A N/A N/A N/A N/A N/A interfaces IReactorSSL reactor None None ssl N/A testSSL N/A N/A self ssl N/A ssl N/A N/A pem N/A N/A util sibpath __file__ server.pem N/A p N/A N/A reactor listenSSL 0 N/A N/A protocol ServerFactory N/A N/A ssl DefaultOpenSSLContextFactory pem pem N/A portNo N/A N/A N/A p getHost port N/A N/A N/A self assertNotEqual N/A N/A N/A str p find N/A str portNo -1 N/A %d not found in %s N/A portNo p N/A N/A N/A p stopListening N/A N/A