Module Expr Str Import alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults Num body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad Call NameLoad NameLoad attr NameLoad Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad Call NameLoad NameLoad attr NameLoad Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore NameStore defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Return Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args TupleStore NameStore NameStore defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args TupleStore NameStore NameStore defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias identifier Import alias Expr Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Call NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call Call NameLoad NameLoad Str Lambda arguments args NameParam defaults NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad FunctionDef arguments args TupleStore NameStore NameStore defaults body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body For NameStore ListLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr 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 Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body For NameStore ListLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr 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 Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Num NameLoad keyword Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Return Call NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body While NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str body Return NameLoad Return Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad FunctionDef arguments args TupleStore NameStore NameStore defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Return Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Lambda arguments args NameParam NameParam defaults TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias identifier FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Return 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 NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq AttributeLoad NameLoad attr Str body Print Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq AttributeLoad NameLoad attr Str body Print Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num 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 Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad 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 NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Expr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args TupleStore NameStore NameStore defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num 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 decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore BinOpMult BinOpMult Num Num Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameStore Call NameLoad Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Return Call NameLoad Lambda arguments args defaults CompareIsNot Call NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Lambda arguments args defaults CompareEq Call NameLoad AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Call NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call NameLoad Lambda arguments args defaults AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call NameLoad Lambda arguments args defaults AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Lambda arguments args defaults AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call 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 NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return 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 NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse Assign NameStore BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Num Assign AttributeStore NameLoad attr NameLoad
N/A N/A 
Tests for implementations of L{IReactorTCP}.
 N/A socket random errno zope.interface implements twisted.trial unittest twisted.python.log msg twisted.internet protocol reactor defer interfaces twisted.internet error twisted.internet.address IPv4Address twisted.internet.interfaces IHalfCloseableProtocol IPullProducer twisted.protocols policies twisted.test.proto_helpers AccumulatingProtocol loopUntil N/A N/A predicate interval N/A 0 N/A N/A 
    Poor excuse for an event notification helper.  This polls a condition and
    calls back a Deferred when it is seen to be true.

    Do not use this function.
     twisted.internet task N/A d N/A N/A defer Deferred check N/A N/A N/A N/A N/A res N/A predicate N/A res N/A N/A N/A N/A d callback res N/A N/A call N/A N/A task LoopingCall check stop N/A N/A result N/A N/A N/A N/A N/A call stop N/A result N/A N/A N/A N/A d addCallback stop N/A d2 N/A N/A call start interval N/A N/A N/A d2 addErrback N/A d errback N/A d N/A ClosingProtocol N/A N/A protocol Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A msg ClosingProtocol.connectionMade N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A msg ClosingProtocol.connectionLost N/A N/A N/A reason trap N/A error ConnectionDone N/A N/A ClosingFactory N/A N/A protocol ServerFactory N/A N/A 
    Factory that closes port immediately.
     N/A _cleanerUpper None buildProtocol N/A N/A self conn N/A N/A N/A N/A self _cleanerUpper N/A N/A N/A self port stopListening N/A N/A ClosingProtocol N/A cleanUp N/A N/A self N/A N/A N/A 
        Clean-up for tests to wait for the port to stop listening.
         N/A N/A N/A self _cleanerUpper None N/A N/A N/A N/A N/A self port stopListening N/A N/A self _cleanerUpper N/A N/A MyProtocolFactoryMixin N/A object N/A N/A 
    Mixin for factories which create L{AccumulatingProtocol} instances.

    @type protocolFactory: no-argument callable
    @ivar protocolFactory: Factory for protocols - takes the place of the
        typical C{protocol} attribute of factories (but that name is used by
        this class for something else).

    @type protocolConnectionMade: L{NoneType} or L{defer.Deferred}
    @ivar protocolConnectionMade: When an instance of L{AccumulatingProtocol}
        is connected, if this is not C{None}, the L{Deferred} will be called
        back with the protocol instance and the attribute set to C{None}.

    @type protocolConnectionLost: L{NoneType} or L{defer.Deferred}
    @ivar protocolConnectionLost: When an instance of L{AccumulatingProtocol}
        is created, this will be set as its C{closedDeferred} attribute and
        then this attribute will be set to C{None} so the L{defer.Deferred} is
        not used by more than one protocol.

    @ivar protocol: The most recently created L{AccumulatingProtocol} instance
        which was returned from C{buildProtocol}.

    @type called: C{int}
    @ivar called: A counter which is incremented each time C{buildProtocol}
        is called.

    @ivar peerAddresses: A C{list} of the addresses passed to C{buildProtocol}.
     N/A protocolFactory AccumulatingProtocol N/A protocolConnectionMade None N/A protocolConnectionLost None N/A protocol None N/A called 0 __init__ N/A N/A self N/A N/A N/A N/A self peerAddresses N/A N/A buildProtocol N/A N/A self addr N/A N/A N/A 
        Create a L{AccumulatingProtocol} and set it up to be able to perform
        callbacks.
         N/A N/A N/A N/A self peerAddresses append addr N/A N/A self called 1 N/A p N/A N/A self protocolFactory N/A N/A p factory self N/A N/A p closedDeferred N/A self protocolConnectionLost N/A N/A self protocolConnectionLost None N/A N/A self protocol p N/A p N/A N/A MyServerFactory N/A MyProtocolFactoryMixin N/A protocol ServerFactory N/A N/A 
    Server factory which creates L{AccumulatingProtocol} instances.
     N/A MyClientFactory N/A MyProtocolFactoryMixin N/A protocol ClientFactory N/A N/A 
    Client factory which creates L{AccumulatingProtocol} instances.
     N/A failed 0 N/A stopped 0 __init__ N/A N/A self N/A N/A N/A N/A N/A MyProtocolFactoryMixin __init__ self N/A N/A self deferred N/A N/A defer Deferred N/A N/A self failDeferred N/A N/A defer Deferred N/A clientConnectionFailed N/A N/A self connector reason N/A N/A N/A N/A self failed 1 N/A N/A self reason reason N/A N/A N/A N/A self failDeferred callback None N/A clientConnectionLost N/A N/A self connector reason N/A N/A N/A N/A self lostReason reason N/A N/A N/A N/A self deferred callback None N/A stopFactory N/A N/A self N/A N/A N/A N/A self stopped 1 N/A N/A ListeningTestCase N/A N/A unittest TestCase N/A test_listen N/A N/A self N/A N/A N/A 
        L{IReactorTCP.listenTCP} returns an object which provides
        L{IListeningPort}.
         N/A f N/A MyServerFactory N/A p1 N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p1 stopListening N/A N/A N/A self failUnless N/A N/A N/A interfaces IListeningPort providedBy p1 N/A testStopListening N/A N/A self N/A N/A N/A 
        The L{IListeningPort} returned by L{IReactorTCP.listenTCP} can be
        stopped with its C{stopListening} method.  After the L{Deferred} it
        (optionally) returns has been called back, the port number can be bound
        to a new server.
         N/A f N/A MyServerFactory N/A port N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A n N/A N/A N/A port getHost port cbStopListening N/A N/A ignored N/A N/A N/A port N/A N/A reactor listenTCP n f interface 127.0.0.1 N/A N/A N/A port stopListening N/A N/A d N/A N/A defer maybeDeferred N/A port stopListening N/A N/A N/A d addCallback cbStopListening N/A d N/A testNumberedInterface N/A N/A self N/A N/A N/A f N/A MyServerFactory N/A p1 N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A N/A p1 stopListening N/A testPortRepr N/A N/A self N/A N/A N/A f N/A MyServerFactory N/A p N/A N/A reactor listenTCP 0 f N/A portNo N/A str N/A N/A N/A p getHost port N/A N/A N/A self failIf N/A N/A N/A N/A repr p find portNo -1 stoppedListening N/A N/A ign N/A N/A N/A N/A N/A self failIf N/A N/A N/A N/A repr p find portNo -1 N/A N/A d N/A N/A defer maybeDeferred N/A p stopListening N/A N/A N/A d addCallback stoppedListening N/A test_serverRepr N/A N/A self N/A N/A N/A 
        Check that the repr string of the server transport get the good port
        number if the server listens on 0.
         N/A server N/A MyServerFactory N/A serverConnMade N/A server protocolConnectionMade N/A N/A defer Deferred N/A port N/A N/A reactor listenTCP 0 server N/A N/A N/A self addCleanup N/A port stopListening N/A client N/A MyClientFactory N/A clientConnMade N/A client protocolConnectionMade N/A N/A defer Deferred N/A connector N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A port getHost port client N/A N/A N/A self addCleanup N/A connector disconnect check N/A N/A N/A serverProto clientProto N/A N/A N/A portNumber N/A N/A N/A port getHost port N/A N/A N/A self assertEquals N/A repr N/A serverProto transport N/A <AccumulatingProtocol #0 on %s> N/A portNumber N/A N/A N/A N/A serverProto transport loseConnection N/A N/A N/A N/A clientProto transport loseConnection N/A N/A N/A N/A N/A N/A defer gatherResults N/A serverConnMade clientConnMade addCallback check N/A test_restartListening N/A N/A self N/A N/A N/A 
        Stop and then try to restart a L{tcp.Port}: after a restart, the
        server should be able to handle client connections.
         N/A serverFactory N/A MyServerFactory N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening cbStopListening N/A N/A ignored N/A N/A N/A N/A N/A port startListening N/A client N/A MyClientFactory N/A N/A serverFactory protocolConnectionMade N/A N/A defer Deferred N/A N/A client protocolConnectionMade N/A N/A defer Deferred N/A connector N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A port getHost port client N/A N/A N/A self addCleanup N/A connector disconnect N/A N/A N/A N/A N/A defer gatherResults N/A N/A serverFactory protocolConnectionMade N/A client protocolConnectionMade addCallback close N/A close N/A N/A N/A serverProto clientProto N/A N/A N/A N/A N/A N/A clientProto transport loseConnection N/A N/A N/A N/A serverProto transport loseConnection N/A N/A d N/A N/A defer maybeDeferred N/A port stopListening N/A N/A N/A d addCallback cbStopListening N/A d N/A test_exceptInStop N/A N/A self N/A N/A N/A 
        If the server factory raises an exception in C{stopFactory}, the
        deferred returned by L{tcp.Port.stopListening} should fail with the
        corresponding error.
         N/A serverFactory N/A MyServerFactory raiseException N/A N/A N/A N/A N/A N/A RuntimeError An error N/A N/A N/A serverFactory stopFactory raiseException N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self assertFailure N/A N/A port stopListening RuntimeError N/A test_restartAfterExcept N/A N/A self N/A N/A N/A 
        Even if the server factory raise an exception in C{stopFactory}, the
        corresponding C{tcp.Port} instance should be in a sane state and can
        be restarted.
         N/A serverFactory N/A MyServerFactory raiseException N/A N/A N/A N/A N/A N/A RuntimeError An error N/A N/A N/A serverFactory stopFactory raiseException N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening cbStopListening N/A N/A ignored N/A N/A N/A N/A serverFactory stopFactory N/A N/A N/A port startListening N/A client N/A MyClientFactory N/A N/A serverFactory protocolConnectionMade N/A N/A defer Deferred N/A N/A client protocolConnectionMade N/A N/A defer Deferred N/A connector N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A port getHost port client N/A N/A N/A self addCleanup N/A connector disconnect N/A N/A N/A N/A N/A defer gatherResults N/A N/A serverFactory protocolConnectionMade N/A client protocolConnectionMade addCallback close N/A close N/A N/A N/A serverProto clientProto N/A N/A N/A N/A N/A N/A clientProto transport loseConnection N/A N/A N/A N/A serverProto transport loseConnection N/A N/A N/A N/A N/A N/A self assertFailure N/A N/A port stopListening RuntimeError addCallback cbStopListening N/A test_directConnectionLostCall N/A N/A self N/A N/A N/A 
        If C{connectionLost} is called directly on a port object, it succeeds
        (and doesn't expect the presence of a C{deferred} attribute).

        C{connectionLost} is called by L{reactor.disconnectAll} at shutdown.
         N/A serverFactory N/A MyServerFactory N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A portNumber N/A N/A N/A port getHost port N/A N/A N/A port connectionLost None N/A client N/A MyClientFactory N/A N/A serverFactory protocolConnectionMade N/A N/A defer Deferred N/A N/A client protocolConnectionMade N/A N/A defer Deferred N/A N/A N/A reactor connectTCP 127.0.0.1 portNumber client check N/A N/A ign N/A N/A N/A N/A N/A N/A client reason trap N/A error ConnectionRefusedError N/A N/A N/A N/A N/A client failDeferred addCallback check N/A test_exceptInConnectionLostCall N/A N/A self N/A N/A N/A 
        If C{connectionLost} is called directory on a port object and that the
        server factory raises an exception in C{stopFactory}, the exception is
        passed through to the caller.

        C{connectionLost} is called by L{reactor.disconnectAll} at shutdown.
         N/A serverFactory N/A MyServerFactory raiseException N/A N/A N/A N/A N/A N/A RuntimeError An error N/A N/A N/A serverFactory stopFactory raiseException N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self assertRaises RuntimeError N/A port connectionLost None N/A N/A callWithSpew N/A N/A f N/A N/A twisted.python.util spewerWithLinenums spewer N/A sys N/A N/A N/A sys settrace spewer N/A N/A N/A N/A f N/A N/A N/A N/A sys settrace None N/A LoopbackTestCase N/A N/A unittest TestCase N/A N/A 
    Test loopback connections.
     test_closePortInProtocolFactory N/A N/A self N/A N/A N/A 
        A port created with L{IReactorTCP.listenTCP} can be connected to with
        L{IReactorTCP.connectTCP}.
         N/A f N/A ClosingFactory N/A port N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A f port port N/A N/A N/A self addCleanup N/A f cleanUp N/A portNumber N/A N/A N/A port getHost port N/A clientF N/A MyClientFactory N/A N/A N/A reactor connectTCP 127.0.0.1 portNumber clientF check N/A N/A x N/A N/A N/A N/A N/A self assertTrue N/A N/A clientF protocol made N/A N/A N/A self assertTrue N/A port disconnected N/A N/A N/A N/A clientF lostReason trap N/A error ConnectionDone N/A N/A N/A N/A N/A clientF deferred addCallback check N/A _trapCnxDone N/A N/A self obj N/A N/A N/A N/A N/A getattr obj trap N/A N/A N/A x N/A None N/A error ConnectionDone N/A _connectedClientAndServerTest N/A N/A self callback N/A N/A N/A 
        Invoke the given callback with a client protocol and a server protocol
        which have been connected to each other.
         N/A serverFactory N/A MyServerFactory N/A serverConnMade N/A N/A defer Deferred N/A N/A serverFactory protocolConnectionMade serverConnMade N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A portNumber N/A N/A N/A port getHost port N/A clientF N/A MyClientFactory N/A clientConnMade N/A N/A defer Deferred N/A N/A clientF protocolConnectionMade clientConnMade N/A N/A N/A reactor connectTCP 127.0.0.1 portNumber clientF N/A connsMade N/A N/A defer gatherResults N/A serverConnMade clientConnMade connected N/A N/A N/A serverProtocol clientProtocol N/A N/A N/A N/A callback serverProtocol clientProtocol N/A N/A N/A N/A serverProtocol transport loseConnection N/A N/A N/A N/A clientProtocol transport loseConnection N/A N/A N/A N/A connsMade addCallback connected N/A connsMade N/A test_tcpNoDelay N/A N/A self N/A N/A N/A 
        The transport of a protocol connected with L{IReactorTCP.connectTCP} or
        L{IReactor.TCP.listenTCP} can have its I{TCP_NODELAY} state inspected
        and manipulated with L{ITCPTransport.getTcpNoDelay} and
        L{ITCPTransport.setTcpNoDelay}.
         check N/A N/A serverProtocol clientProtocol N/A N/A N/A p N/A serverProtocol clientProtocol N/A N/A transport N/A p transport N/A N/A N/A self assertEquals N/A N/A transport getTcpNoDelay 0 N/A N/A N/A transport setTcpNoDelay 1 N/A N/A N/A self assertEquals N/A N/A transport getTcpNoDelay 1 N/A N/A N/A transport setTcpNoDelay 0 N/A N/A N/A self assertEquals N/A N/A transport getTcpNoDelay 0 N/A N/A N/A N/A self _connectedClientAndServerTest check N/A test_tcpKeepAlive N/A N/A self N/A N/A N/A 
        The transport of a protocol connected with L{IReactorTCP.connectTCP} or
        L{IReactor.TCP.listenTCP} can have its I{SO_KEEPALIVE} state inspected
        and manipulated with L{ITCPTransport.getTcpKeepAlive} and
        L{ITCPTransport.setTcpKeepAlive}.
         check N/A N/A serverProtocol clientProtocol N/A N/A N/A p N/A serverProtocol clientProtocol N/A N/A transport N/A p transport N/A N/A N/A self assertEquals N/A N/A transport getTcpKeepAlive 0 N/A N/A N/A transport setTcpKeepAlive 1 N/A N/A N/A self assertEquals N/A N/A transport getTcpKeepAlive 1 N/A N/A N/A transport setTcpKeepAlive 0 N/A N/A N/A self assertEquals N/A N/A transport getTcpKeepAlive 0 N/A N/A N/A N/A self _connectedClientAndServerTest check N/A testFailing N/A N/A self N/A N/A N/A clientF N/A MyClientFactory N/A N/A N/A reactor connectTCP 127.0.0.1 69 clientF timeout 5 check N/A N/A ignored N/A N/A N/A N/A N/A N/A clientF reason trap N/A error ConnectionRefusedError N/A N/A N/A N/A N/A clientF failDeferred addCallback check N/A test_connectionRefusedErrorNumber N/A N/A self N/A N/A N/A 
        Assert that the error number of the ConnectionRefusedError is
        ECONNREFUSED, and not some other socket related error.
         N/A serverSockets N/A N/A i N/A xrange 10 N/A N/A serverSocket N/A N/A socket socket N/A N/A N/A serverSocket bind N/A 127.0.0.1 0 N/A N/A N/A serverSocket listen 1 N/A N/A N/A serverSockets append serverSocket N/A N/A N/A random shuffle serverSockets N/A clientCreator N/A N/A protocol ClientCreator reactor N/A protocol Protocol tryConnectFailure N/A N/A N/A N/A connected N/A N/A proto N/A N/A N/A 
                Darn.  Kill it and try again, if there are any tries left.
                 N/A N/A N/A N/A proto transport loseConnection N/A serverSockets N/A N/A N/A tryConnectFailure N/A N/A N/A self fail Could not fail to connect - could not test errno for that case. N/A N/A serverSocket N/A N/A serverSockets pop N/A N/A serverHost serverPort N/A N/A serverSocket getsockname N/A N/A N/A serverSocket close N/A connectDeferred N/A N/A clientCreator connectTCP serverHost serverPort N/A N/A N/A connectDeferred addCallback connected N/A connectDeferred N/A N/A refusedDeferred N/A tryConnectFailure N/A N/A N/A self assertFailure refusedDeferred N/A error ConnectionRefusedError connRefused N/A N/A exc N/A N/A N/A N/A N/A self assertEqual N/A exc osError N/A errno ECONNREFUSED N/A N/A N/A N/A refusedDeferred addCallback connRefused cleanup N/A N/A passthrough N/A N/A N/A serverSockets N/A N/A N/A N/A N/A N/A serverSockets pop close N/A passthrough N/A N/A N/A N/A refusedDeferred addBoth cleanup N/A refusedDeferred N/A test_connectByServiceFail N/A N/A self N/A N/A N/A 
        Connecting to a named service which does not exist raises
        L{error.ServiceNameUnknownError}.
         N/A N/A N/A self assertRaises N/A error ServiceNameUnknownError N/A reactor connectTCP 127.0.0.1 thisbetternotexist N/A MyClientFactory N/A test_connectByService N/A N/A self N/A N/A N/A 
        L{IReactorTCP.connectTCP} accepts the name of a service instead of a
        port number and connects to the port number associated with that
        service, as defined by L{socket.getservbyname}.
         N/A serverFactory N/A MyServerFactory N/A serverConnMade N/A N/A defer Deferred N/A N/A serverFactory protocolConnectionMade serverConnMade N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A portNumber N/A N/A N/A port getHost port N/A clientFactory N/A MyClientFactory N/A clientConnMade N/A N/A defer Deferred N/A N/A clientFactory protocolConnectionMade clientConnMade fakeGetServicePortByName N/A N/A serviceName protocolName N/A N/A N/A N/A N/A serviceName http N/A protocolName tcp N/A N/A portNumber N/A 10 N/A N/A N/A N/A self patch socket getservbyname fakeGetServicePortByName N/A N/A N/A reactor connectTCP 127.0.0.1 http clientFactory N/A connMade N/A N/A defer gatherResults N/A serverConnMade clientConnMade connected N/A N/A N/A serverProtocol clientProtocol N/A N/A N/A N/A N/A self assertTrue N/A serverFactory called Server factory was not called upon to build a protocol. N/A N/A N/A N/A serverProtocol transport loseConnection N/A N/A N/A N/A clientProtocol transport loseConnection N/A N/A N/A N/A connMade addCallback connected N/A connMade N/A N/A StartStopFactory N/A N/A protocol Factory N/A N/A started 0 N/A stopped 0 startFactory N/A N/A self N/A N/A N/A N/A N/A self started N/A self stopped N/A N/A RuntimeError N/A N/A self started 1 N/A stopFactory N/A N/A self N/A N/A N/A N/A N/A N/A self started N/A self stopped N/A N/A RuntimeError N/A N/A self stopped 1 N/A N/A ClientStartStopFactory N/A MyClientFactory N/A N/A started 0 N/A stopped 0 startFactory N/A N/A self N/A N/A N/A N/A N/A self started N/A self stopped N/A N/A RuntimeError N/A N/A self started 1 N/A stopFactory N/A N/A self N/A N/A N/A N/A N/A N/A self started N/A self stopped N/A N/A RuntimeError N/A N/A self stopped 1 N/A N/A FactoryTestCase N/A N/A unittest TestCase N/A N/A Tests for factories. test_serverStartStop N/A N/A self N/A N/A N/A 
        The factory passed to L{IReactorTCP.listenTCP} should be started only
        when it transitions from being used on no ports to being used on one
        port and should be stopped only when it transitions from being used on
        one port to being used on no ports.
         N/A f N/A StartStopFactory N/A p1 N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p1 stopListening N/A N/A N/A self assertEqual N/A N/A f started N/A f stopped N/A 1 0 N/A p2 N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A p3 N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A N/A self assertEqual N/A N/A f started N/A f stopped N/A 1 0 N/A d1 N/A N/A defer maybeDeferred N/A p1 stopListening N/A d2 N/A N/A defer maybeDeferred N/A p2 stopListening N/A closedDeferred N/A N/A defer gatherResults N/A d1 d2 cbClosed N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A f started N/A f stopped N/A 1 0 N/A N/A N/A p3 stopListening N/A N/A N/A N/A closedDeferred addCallback cbClosed cbClosedAll N/A N/A ignored N/A N/A N/A N/A N/A self assertEquals N/A N/A f started N/A f stopped N/A 1 1 N/A N/A N/A N/A closedDeferred addCallback cbClosedAll N/A closedDeferred N/A test_clientStartStop N/A N/A self N/A N/A N/A 
        The factory passed to L{IReactorTCP.connectTCP} should be started when
        the connection attempt starts and stopped when it is over.
         N/A f N/A ClosingFactory N/A p N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A f port p N/A N/A N/A self addCleanup N/A f cleanUp N/A portNumber N/A N/A N/A p getHost port N/A factory N/A ClientStartStopFactory N/A N/A N/A reactor connectTCP 127.0.0.1 portNumber factory N/A N/A N/A self assertTrue N/A factory started N/A N/A loopUntil N/A N/A N/A N/A N/A factory stopped N/A N/A ConnectorTestCase N/A N/A unittest TestCase N/A test_connectorIdentity N/A N/A self N/A N/A N/A 
        L{IReactorTCP.connectTCP} returns an object which provides
        L{IConnector}.  The destination of the connector is the address which
        was passed to C{connectTCP}.  The same connector object is passed to
        the factory's C{startedConnecting} method as to the factory's
        C{clientConnectionLost} method.
         N/A serverFactory N/A ClosingFactory N/A tcpPort N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A serverFactory port tcpPort N/A N/A N/A self addCleanup N/A serverFactory cleanUp N/A portNumber N/A N/A N/A tcpPort getHost port N/A seenConnectors N/A N/A seenFailures N/A N/A clientFactory N/A ClientStartStopFactory N/A N/A clientFactory clientConnectionLost N/A N/A N/A connector reason N/A N/A N/A N/A seenConnectors append connector N/A N/A seenFailures append reason N/A N/A clientFactory startedConnecting N/A seenConnectors append N/A connector N/A N/A reactor connectTCP 127.0.0.1 portNumber clientFactory N/A N/A N/A self assertTrue N/A N/A N/A interfaces IConnector providedBy connector N/A dest N/A N/A connector getDestination N/A N/A N/A self assertEquals N/A dest type TCP N/A N/A N/A self assertEquals N/A dest host 127.0.0.1 N/A N/A N/A self assertEquals N/A dest port portNumber N/A d N/A loopUntil N/A N/A N/A N/A N/A clientFactory stopped clientFactoryStopped N/A N/A ignored N/A N/A N/A N/A N/A N/A seenFailures N/A 0 trap N/A error ConnectionDone N/A N/A N/A self assertEqual seenConnectors N/A connector connector N/A N/A N/A N/A d addCallback clientFactoryStopped N/A d N/A test_userFail N/A N/A self N/A N/A N/A 
        Calling L{IConnector.stopConnecting} in C{Factory.startedConnecting}
        results in C{Factory.clientConnectionFailed} being called with
        L{error.UserError} as the reason.
         N/A serverFactory N/A MyServerFactory N/A tcpPort N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A tcpPort stopListening N/A portNumber N/A N/A N/A tcpPort getHost port startedConnecting N/A N/A connector N/A N/A N/A N/A N/A connector stopConnecting N/A N/A clientFactory N/A ClientStartStopFactory N/A N/A clientFactory startedConnecting startedConnecting N/A N/A N/A reactor connectTCP 127.0.0.1 portNumber clientFactory N/A d N/A loopUntil N/A N/A N/A N/A N/A clientFactory stopped check N/A N/A ignored N/A N/A N/A N/A N/A self assertEquals N/A clientFactory failed 1 N/A N/A N/A N/A clientFactory reason trap N/A error UserError N/A N/A N/A N/A d addCallback check N/A test_reconnect N/A N/A self N/A N/A N/A 
        Calling L{IConnector.connect} in C{Factory.clientConnectionLost} causes
        a new connection attempt to be made.
         N/A serverFactory N/A ClosingFactory N/A tcpPort N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A serverFactory port tcpPort N/A N/A N/A self addCleanup N/A serverFactory cleanUp N/A portNumber N/A N/A N/A tcpPort getHost port N/A clientFactory N/A MyClientFactory clientConnectionLost N/A N/A connector reason N/A N/A N/A N/A N/A connector connect N/A N/A N/A clientFactory clientConnectionLost clientConnectionLost N/A N/A N/A reactor connectTCP 127.0.0.1 portNumber clientFactory N/A d N/A loopUntil N/A N/A N/A N/A N/A clientFactory failed reconnectFailed N/A N/A ignored N/A N/A N/A p N/A clientFactory protocol N/A N/A N/A self assertEqual N/A N/A p made N/A p closed N/A 1 1 N/A N/A N/A N/A clientFactory reason trap N/A error ConnectionRefusedError N/A N/A N/A self assertEqual N/A clientFactory stopped 1 N/A N/A N/A N/A d addCallback reconnectFailed N/A N/A CannotBindTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for correct behavior when a reactor cannot bind to the required TCP
    port.
     test_cannotBind N/A N/A self N/A N/A N/A 
        L{IReactorTCP.listenTCP} raises L{error.CannotListenError} if the
        address to listen on is already in use.
         N/A f N/A MyServerFactory N/A p1 N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p1 stopListening N/A n N/A N/A N/A p1 getHost port N/A dest N/A N/A p1 getHost N/A N/A N/A self assertEquals N/A dest type TCP N/A N/A N/A self assertEquals N/A dest host 127.0.0.1 N/A N/A N/A self assertEquals N/A dest port n N/A N/A N/A self assertRaises N/A error CannotListenError N/A reactor listenTCP n f interface 127.0.0.1 N/A _fireWhenDoneFunc N/A N/A self d f N/A N/A N/A Returns closure that when called calls f and then callbacks d.
         twisted.python util tputil newf N/A N/A N/A args kw N/A N/A rtn N/A f args kw N/A N/A N/A d callback N/A rtn N/A N/A N/A N/A tputil mergeFunctionMetadata f newf N/A test_clientBind N/A N/A self N/A N/A N/A 
        L{IReactorTCP.connectTCP} calls C{Factory.clientConnectionFailed} with
        L{error.ConnectBindError} if the bind address specified is already in
        use.
         N/A theDeferred N/A N/A defer Deferred N/A sf N/A MyServerFactory N/A N/A sf startFactory N/A N/A self _fireWhenDoneFunc theDeferred N/A sf startFactory N/A p N/A N/A reactor listenTCP 0 sf interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p stopListening _connect1 N/A N/A results N/A N/A N/A d N/A N/A defer Deferred N/A cf1 N/A MyClientFactory N/A N/A cf1 buildProtocol N/A N/A self _fireWhenDoneFunc d N/A cf1 buildProtocol N/A N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A p getHost port cf1 bindAddress N/A 127.0.0.1 0 N/A N/A N/A d addCallback _conmade cf1 N/A d N/A _conmade N/A N/A results cf1 N/A N/A N/A d N/A N/A defer Deferred N/A N/A N/A cf1 protocol connectionMade N/A N/A self _fireWhenDoneFunc d N/A N/A cf1 protocol connectionMade N/A N/A N/A d addCallback _check1connect2 cf1 N/A d N/A _check1connect2 N/A N/A results cf1 N/A N/A N/A N/A N/A self assertEquals N/A N/A cf1 protocol made 1 N/A d1 N/A N/A defer Deferred N/A d2 N/A N/A defer Deferred N/A port N/A N/A N/A N/A N/A cf1 protocol transport getHost port N/A cf2 N/A MyClientFactory N/A N/A cf2 clientConnectionFailed N/A N/A self _fireWhenDoneFunc d1 N/A cf2 clientConnectionFailed N/A N/A cf2 stopFactory N/A N/A self _fireWhenDoneFunc d2 N/A cf2 stopFactory N/A N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A p getHost port cf2 bindAddress N/A 127.0.0.1 port N/A N/A N/A d1 addCallback _check2failed cf1 cf2 N/A N/A N/A d2 addCallback _check2stopped cf1 cf2 N/A dl N/A N/A defer DeferredList N/A d1 d2 N/A N/A N/A dl addCallback _stop cf1 cf2 N/A dl N/A _check2failed N/A N/A results cf1 cf2 N/A N/A N/A N/A N/A self assertEquals N/A cf2 failed 1 N/A N/A N/A N/A cf2 reason trap N/A error ConnectBindError N/A N/A N/A self assertTrue N/A N/A N/A cf2 reason check N/A error ConnectBindError N/A results N/A _check2stopped N/A N/A results cf1 cf2 N/A N/A N/A N/A N/A self assertEquals N/A cf2 stopped 1 N/A results N/A _stop N/A N/A results cf1 cf2 N/A N/A N/A d N/A N/A defer Deferred N/A N/A N/A d addCallback _check1cleanup cf1 N/A N/A cf1 stopFactory N/A N/A self _fireWhenDoneFunc d N/A cf1 stopFactory N/A N/A N/A N/A N/A cf1 protocol transport loseConnection N/A d N/A _check1cleanup N/A N/A results cf1 N/A N/A N/A N/A N/A self assertEquals N/A cf1 stopped 1 N/A N/A N/A N/A theDeferred addCallback _connect1 N/A theDeferred N/A N/A MyOtherClientFactory N/A N/A protocol ClientFactory N/A buildProtocol N/A N/A self address N/A N/A N/A N/A self address address N/A N/A self protocol N/A AccumulatingProtocol N/A N/A self protocol N/A N/A LocalRemoteAddressTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for correct getHost/getPeer values and that the correct address is
    passed to buildProtocol.
     test_hostAddress N/A N/A self N/A N/A N/A 
        L{IListeningPort.getHost} returns the same address as a client
        connection's L{ITCPTransport.getPeer}.
         N/A serverFactory N/A MyServerFactory N/A N/A serverFactory protocolConnectionLost N/A N/A defer Deferred N/A serverConnectionLost N/A serverFactory protocolConnectionLost N/A port N/A N/A reactor listenTCP 0 serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A n N/A N/A N/A port getHost port N/A clientFactory N/A MyClientFactory N/A onConnection N/A clientFactory protocolConnectionMade N/A N/A defer Deferred N/A connector N/A N/A reactor connectTCP 127.0.0.1 n clientFactory check N/A N/A ignored N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A port getHost N/A clientFactory peerAddresses N/A N/A N/A self assertEquals N/A N/A port getHost N/A N/A N/A N/A clientFactory protocol transport getPeer N/A N/A N/A N/A onConnection addCallback check cleanup N/A N/A ignored N/A N/A N/A N/A N/A connector disconnect N/A serverConnectionLost N/A N/A N/A N/A onConnection addCallback cleanup N/A onConnection N/A N/A WriterProtocol N/A N/A protocol Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport write Hello Cleveland!
 N/A seq N/A Goodbye  cruel  world N/A N/A N/A N/A self transport writeSequence seq N/A peer N/A N/A N/A self transport getPeer N/A N/A N/A peer type TCP N/A N/A getPeer returned non-TCP socket: peer N/A N/A N/A self factory problem 1 N/A us N/A N/A N/A self transport getHost N/A N/A N/A us type TCP N/A N/A getHost returned non-TCP socket: us N/A N/A N/A self factory problem 1 N/A N/A N/A self factory done 1 N/A N/A N/A N/A self transport loseConnection N/A N/A ReaderProtocol N/A N/A protocol Protocol N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A self factory data data N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A self factory done 1 N/A N/A WriterClientFactory N/A N/A protocol ClientFactory N/A __init__ N/A N/A self N/A N/A N/A N/A self done 0 N/A N/A self data N/A buildProtocol N/A N/A self addr N/A N/A N/A p N/A ReaderProtocol N/A N/A p factory self N/A N/A self protocol p N/A p N/A N/A WriteDataTestCase N/A N/A unittest TestCase N/A N/A 
    Test that connected TCP sockets can actually write data. Try to exercise
    the entire ITransport interface.
     test_writer N/A N/A self N/A N/A N/A 
        L{ITCPTransport.write} and L{ITCPTransport.writeSequence} send bytes to
        the other end of the connection.
         N/A f N/A N/A protocol Factory N/A N/A f protocol WriterProtocol N/A N/A f done 0 N/A N/A f problem 0 N/A wrappedF N/A WiredFactory f N/A p N/A N/A reactor listenTCP 0 wrappedF interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p stopListening N/A n N/A N/A N/A p getHost port N/A clientF N/A WriterClientFactory N/A wrappedClientF N/A WiredFactory clientF N/A N/A N/A reactor connectTCP 127.0.0.1 n wrappedClientF check N/A N/A ignored N/A N/A N/A N/A N/A self failUnless N/A f done writer didn't finish, it probably died N/A N/A N/A self failUnless N/A N/A f problem 0 writer indicated an error N/A N/A N/A self failUnless N/A clientF done client didn't see connection dropped N/A expected N/A N/A join N/A Hello Cleveland!
 Goodbye  cruel  world N/A N/A N/A self failUnless N/A N/A clientF data expected client didn't receive all the data it expected N/A N/A d N/A N/A defer gatherResults N/A N/A wrappedF onDisconnect N/A wrappedClientF onDisconnect N/A N/A N/A d addCallback check N/A test_writeAfterShutdownWithoutReading N/A N/A self N/A N/A N/A 
        A TCP transport which is written to after the connection has been shut
        down should notify its protocol that the connection has been lost, even
        if the TCP transport is not actively being monitored for read events
        (ie, pauseProducing was called on it).
         N/A N/A N/A N/A reactor __class__ __name__ IOCPReactor N/A N/A N/A N/A unittest SkipTest iocpreactor does not, in fact, stop reading immediately after pauseProducing is called. This results in a bonus disconnection notification. Under some circumstances, it might be possible to not receive this notifications (specifically, pauseProducing, deliver some data, proceed with this test). N/A N/A N/A N/A reactor __class__ __name__ GtkReactor N/A N/A N/A N/A unittest SkipTest gtkreactor does not implement unclean disconnection notification correctly.  This might more properly be a todo, but due to technical limitations it cannot be. N/A clientPaused N/A N/A defer Deferred N/A serverLost N/A N/A defer Deferred Disconnecter N/A N/A protocol Protocol N/A N/A 
            Protocol for the server side of the connection which disconnects
            itself in a callback on clientPaused and publishes notification
            when its connection is actually lost.
             connectionMade N/A N/A self N/A N/A N/A 
                Set up a callback on clientPaused to lose the connection.
                 N/A N/A msg Disconnector.connectionMade disconnect N/A N/A ignored N/A N/A N/A N/A msg Disconnector.connectionMade disconnect N/A N/A N/A N/A self transport loseConnection N/A N/A msg loseConnection called N/A N/A N/A N/A clientPaused addCallback disconnect N/A connectionLost N/A N/A self reason N/A N/A N/A 
                Notify observers that the server side of the connection has
                ended.
                 N/A N/A msg Disconnecter.connectionLost N/A N/A N/A serverLost callback None N/A N/A msg serverLost called back N/A N/A N/A server N/A N/A protocol ServerFactory N/A N/A server protocol Disconnecter N/A port N/A N/A reactor listenTCP 0 server interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A addr N/A N/A port getHost Infinite N/A object N/A N/A 
            A producer which will write to its consumer as long as
            resumeProducing is called.

            @ivar consumer: The L{IConsumer} which will be written to.
             N/A N/A implements IPullProducer __init__ N/A N/A self consumer N/A N/A N/A N/A self consumer consumer N/A resumeProducing N/A N/A self N/A N/A N/A N/A msg Infinite.resumeProducing N/A N/A N/A N/A self consumer write x N/A N/A msg Infinite.resumeProducing wrote to consumer N/A stopProducing N/A N/A self N/A N/A N/A N/A msg Infinite.stopProducing N/A N/A UnreadingWriter N/A N/A protocol Protocol N/A N/A 
            Trivial protocol which pauses its transport immediately and then
            writes some bytes to it.
             connectionMade N/A N/A self N/A N/A N/A N/A msg UnreadingWriter.connectionMade N/A N/A N/A N/A self transport pauseProducing N/A N/A N/A clientPaused callback None N/A N/A msg clientPaused called back write N/A N/A ignored N/A N/A N/A N/A msg UnreadingWriter.connectionMade write N/A producer N/A Infinite N/A self transport N/A N/A msg UnreadingWriter.connectionMade write created producer N/A N/A N/A N/A self transport registerProducer producer False N/A N/A msg UnreadingWriter.connectionMade write registered producer N/A N/A N/A N/A serverLost addCallback write N/A N/A N/A client N/A MyClientFactory N/A N/A client protocolFactory UnreadingWriter N/A clientConnectionLost N/A client deferred cbClientLost N/A N/A ignored N/A N/A N/A N/A msg cbClientLost N/A N/A client lostReason N/A N/A N/A N/A clientConnectionLost addCallback cbClientLost N/A N/A msg N/A Connecting to %s:%s N/A N/A addr host N/A addr port N/A N/A N/A reactor connectTCP N/A addr host N/A addr port client N/A N/A msg Returning Deferred N/A N/A N/A self assertFailure clientConnectionLost N/A error ConnectionLost N/A N/A ConnectionLosingProtocol N/A N/A protocol Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport write 1 N/A N/A N/A N/A self transport loseConnection N/A N/A N/A N/A self master _connectionMade N/A N/A N/A N/A N/A self master ports append N/A self transport N/A N/A NoopProtocol N/A N/A protocol Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A self d N/A N/A defer Deferred N/A N/A N/A N/A N/A self master serverConns append N/A self d N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A self d callback True N/A N/A ConnectionLostNotifyingProtocol N/A N/A protocol Protocol N/A N/A 
    Protocol which fires a Deferred which was previously passed to
    its initializer when the connection is lost.

    @ivar onConnectionLost: The L{Deferred} which will be fired in
        C{connectionLost}.

    @ivar lostConnectionReason: C{None} until the connection is lost, then a
        reference to the reason passed to C{connectionLost}.
     __init__ N/A N/A self onConnectionLost N/A N/A N/A N/A self lostConnectionReason None N/A N/A self onConnectionLost onConnectionLost N/A connectionLost N/A N/A self reason N/A N/A N/A N/A self lostConnectionReason reason N/A N/A N/A N/A self onConnectionLost callback self N/A N/A HandleSavingProtocol N/A ConnectionLostNotifyingProtocol N/A N/A 
    Protocol which grabs the platform-specific socket handle and
    saves it as an attribute on itself when the connection is
    established.
     makeConnection N/A N/A self transport N/A N/A N/A 
        Save the platform-specific socket handle for future
        introspection.
         N/A N/A self handle N/A N/A transport getHandle N/A N/A N/A N/A protocol Protocol makeConnection self transport N/A N/A ProperlyCloseFilesMixin N/A N/A N/A 
    Tests for platform resources properly being cleaned up.
     createServer N/A N/A self address portNumber factory N/A N/A N/A 
        Bind a server port to which connections will be made.  The server
        should use the given protocol factory.

        @return: The L{IListeningPort} for the server created.
         N/A N/A NotImplementedError N/A connectClient N/A N/A self address portNumber clientCreator N/A N/A N/A 
        Establish a connection to the given address using the given
        L{ClientCreator} instance.

        @return: A Deferred which will fire with the connected protocol instance.
         N/A N/A NotImplementedError N/A getHandleExceptionType N/A N/A self N/A N/A N/A 
        Return the exception class which will be raised when an operation is
        attempted on a closed platform handle.
         N/A N/A NotImplementedError N/A getHandleErrorCode N/A N/A self N/A N/A N/A 
        Return the errno expected to result from writing to a closed
        platform socket handle.
         N/A N/A errno EBADF N/A test_properlyCloseFiles N/A N/A self N/A N/A N/A 
        Test that lost connections properly have their underlying socket
        resources cleaned up.
         N/A onServerConnectionLost N/A N/A defer Deferred N/A serverFactory N/A N/A protocol ServerFactory N/A N/A serverFactory protocol N/A N/A N/A N/A N/A ConnectionLostNotifyingProtocol onServerConnectionLost N/A serverPort N/A N/A self createServer 127.0.0.1 0 serverFactory N/A onClientConnectionLost N/A N/A defer Deferred N/A serverAddr N/A N/A serverPort getHost N/A clientCreator N/A N/A protocol ClientCreator reactor N/A N/A N/A N/A N/A HandleSavingProtocol onClientConnectionLost N/A clientDeferred N/A N/A self connectClient N/A serverAddr host N/A serverAddr port clientCreator clientConnected N/A N/A client N/A N/A N/A 
            Disconnect the client.  Return a Deferred which fires when both
            the client and the server have received disconnect notification.
             N/A N/A N/A N/A client transport write some bytes to make sure the connection is set up N/A N/A N/A N/A client transport loseConnection N/A N/A N/A defer gatherResults N/A onClientConnectionLost onServerConnectionLost N/A N/A N/A N/A clientDeferred addCallback clientConnected clientDisconnected N/A N/A N/A client server N/A N/A N/A 
            Verify that the underlying platform socket handle has been
            cleaned up.
             N/A N/A N/A N/A client lostConnectionReason trap N/A error ConnectionClosed N/A N/A N/A N/A server lostConnectionReason trap N/A error ConnectionClosed N/A expectedErrorCode N/A N/A self getHandleErrorCode N/A err N/A N/A self assertRaises N/A N/A self getHandleExceptionType N/A N/A client handle send bytes N/A N/A N/A self assertEqual N/A N/A err args N/A 0 expectedErrorCode N/A N/A N/A N/A clientDeferred addCallback clientDisconnected cleanup N/A N/A passthrough N/A N/A N/A 
            Shut down the server port.  Return a Deferred which fires when
            this has completed.
             N/A result N/A N/A defer maybeDeferred N/A serverPort stopListening N/A N/A N/A result addCallback N/A N/A N/A ign N/A passthrough N/A result N/A N/A N/A N/A clientDeferred addBoth cleanup N/A clientDeferred N/A N/A ProperlyCloseFilesTestCase N/A N/A unittest TestCase ProperlyCloseFilesMixin N/A N/A 
    Test that the sockets created by L{IReactorTCP.connectTCP} are cleaned up
    when the connection they are associated with is closed.
     createServer N/A N/A self address portNumber factory N/A N/A N/A 
        Create a TCP server using L{IReactorTCP.listenTCP}.
         N/A N/A N/A reactor listenTCP portNumber factory interface address N/A connectClient N/A N/A self address portNumber clientCreator N/A N/A N/A 
        Create a TCP client using L{IReactorTCP.connectTCP}.
         N/A N/A N/A clientCreator connectTCP address portNumber N/A getHandleExceptionType N/A N/A self N/A N/A N/A 
        Return L{socket.error} as the expected error type which will be
        raised by a write to the low-level socket object after it has been
        closed.
         N/A N/A socket error N/A N/A WiredForDeferreds N/A N/A policies ProtocolWrapper N/A __init__ N/A N/A self factory wrappedProtocol N/A N/A N/A N/A N/A N/A policies ProtocolWrapper __init__ self factory wrappedProtocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A policies ProtocolWrapper connectionMade self N/A N/A N/A N/A N/A self factory onConnect callback None N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A policies ProtocolWrapper connectionLost self reason N/A N/A N/A N/A N/A self factory onDisconnect callback None N/A N/A WiredFactory N/A N/A policies WrappingFactory N/A N/A protocol WiredForDeferreds __init__ N/A N/A self wrappedFactory N/A N/A N/A N/A N/A N/A policies WrappingFactory __init__ self wrappedFactory N/A N/A self onConnect N/A N/A defer Deferred N/A N/A self onDisconnect N/A N/A defer Deferred N/A N/A AddressTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for address-related interactions with client and server protocols.
     setUp N/A N/A self N/A N/A N/A 
        Create a port and connected client/server pair which can be used
        to test factory behavior related to addresses.

        @return: A L{defer.Deferred} which will be called back when both the
            client and server protocols have received their connection made
            callback.
         RememberingWrapper N/A N/A protocol ClientFactory N/A N/A 
            Simple wrapper factory which records the addresses which are
            passed to its L{buildProtocol} method and delegates actual
            protocol creation to another factory.

            @ivar addresses: A list of the objects passed to buildProtocol.
            @ivar factory: The wrapped factory to which protocol creation is
                delegated.
             __init__ N/A N/A self factory N/A N/A N/A N/A self addresses N/A N/A N/A self factory factory N/A buildProtocol N/A N/A self addr N/A N/A N/A 
                Append the given address to C{self.addresses} and forward
                the call to C{self.factory}.
                 N/A N/A N/A N/A self addresses append addr N/A N/A N/A N/A self factory buildProtocol addr N/A N/A N/A N/A self server N/A MyServerFactory N/A N/A self serverConnMade N/A N/A self server protocolConnectionMade N/A N/A defer Deferred N/A N/A self serverConnLost N/A N/A self server protocolConnectionLost N/A N/A defer Deferred N/A N/A self serverWrapper N/A RememberingWrapper N/A self server N/A N/A self client N/A MyClientFactory N/A N/A self clientConnMade N/A N/A self client protocolConnectionMade N/A N/A defer Deferred N/A N/A self clientConnLost N/A N/A self client protocolConnectionLost N/A N/A defer Deferred N/A N/A self clientWrapper N/A RememberingWrapper N/A self client N/A N/A self port N/A N/A reactor listenTCP 0 N/A self serverWrapper interface 127.0.0.1 N/A N/A self connector N/A N/A reactor connectTCP N/A N/A N/A N/A self port getHost host N/A N/A N/A N/A self port getHost port N/A self clientWrapper N/A N/A N/A defer gatherResults N/A N/A self serverConnMade N/A self clientConnMade N/A tearDown N/A N/A self N/A N/A N/A 
        Disconnect the client/server pair and shutdown the port created in
        L{setUp}.
         N/A N/A N/A N/A self connector disconnect N/A N/A N/A defer gatherResults N/A N/A self serverConnLost N/A self clientConnLost N/A N/A defer maybeDeferred N/A N/A self port stopListening N/A test_buildProtocolClient N/A N/A self N/A N/A N/A 
        L{ClientFactory.buildProtocol} should be invoked with the address of
        the server to which a connection has been established, which should
        be the same as the address reported by the C{getHost} method of the
        transport of the server protocol and as the C{getPeer} method of the
        transport of the client protocol.
         N/A serverHost N/A N/A N/A N/A N/A self server protocol transport getHost N/A clientPeer N/A N/A N/A N/A N/A self client protocol transport getPeer N/A N/A N/A self assertEqual N/A N/A self clientWrapper addresses N/A N/A IPv4Address TCP N/A serverHost host N/A serverHost port N/A N/A N/A self assertEqual N/A N/A self clientWrapper addresses N/A N/A IPv4Address TCP N/A clientPeer host N/A clientPeer port N/A test_buildProtocolServer N/A N/A self N/A N/A N/A 
        L{ServerFactory.buildProtocol} should be invoked with the address of
        the client which has connected to the port the factory is listening on,
        which should be the same as the address reported by the C{getPeer}
        method of the transport of the server protocol and as the C{getHost}
        method of the transport of the client protocol.
         N/A clientHost N/A N/A N/A N/A N/A self client protocol transport getHost N/A serverPeer N/A N/A N/A N/A N/A self server protocol transport getPeer N/A N/A N/A self assertEqual N/A N/A self serverWrapper addresses N/A N/A IPv4Address TCP N/A serverPeer host N/A serverPeer port N/A N/A N/A self assertEqual N/A N/A self serverWrapper addresses N/A N/A IPv4Address TCP N/A clientHost host N/A clientHost port N/A N/A LargeBufferWriterProtocol N/A N/A protocol Protocol N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport write N/A X N/A N/A self factory len N/A N/A N/A self factory done 1 N/A N/A N/A N/A self transport loseConnection N/A N/A LargeBufferReaderProtocol N/A N/A protocol Protocol N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A self factory len N/A len data N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A self factory done 1 N/A N/A LargeBufferReaderClientFactory N/A N/A protocol ClientFactory N/A __init__ N/A N/A self N/A N/A N/A N/A self done 0 N/A N/A self len 0 N/A buildProtocol N/A N/A self addr N/A N/A N/A p N/A LargeBufferReaderProtocol N/A N/A p factory self N/A N/A self protocol p N/A p N/A N/A FireOnClose N/A N/A policies ProtocolWrapper N/A N/A A wrapper around a protocol that makes it fire a deferred when
    connectionLost is called.
     connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A policies ProtocolWrapper connectionLost self reason N/A N/A N/A N/A N/A self factory deferred callback None N/A N/A FireOnCloseFactory N/A N/A policies WrappingFactory N/A N/A protocol FireOnClose __init__ N/A N/A self wrappedFactory N/A N/A N/A N/A N/A N/A policies WrappingFactory __init__ self wrappedFactory N/A N/A self deferred N/A N/A defer Deferred N/A N/A LargeBufferTestCase N/A N/A unittest TestCase N/A N/A Test that buffering large amounts of data works.
     N/A datalen N/A N/A 60 1024 1024 testWriter N/A N/A self N/A N/A N/A f N/A N/A protocol Factory N/A N/A f protocol LargeBufferWriterProtocol N/A N/A f done 0 N/A N/A f problem 0 N/A N/A f len N/A self datalen N/A wrappedF N/A FireOnCloseFactory f N/A p N/A N/A reactor listenTCP 0 wrappedF interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p stopListening N/A n N/A N/A N/A p getHost port N/A clientF N/A LargeBufferReaderClientFactory N/A wrappedClientF N/A FireOnCloseFactory clientF N/A N/A N/A reactor connectTCP 127.0.0.1 n wrappedClientF N/A d N/A N/A defer gatherResults N/A N/A wrappedF deferred N/A wrappedClientF deferred check N/A N/A ignored N/A N/A N/A N/A N/A self failUnless N/A f done writer didn't finish, it probably died N/A N/A N/A self failUnless N/A N/A clientF len N/A self datalen N/A client didn't receive all the data it expected (%d != %d) N/A N/A clientF len N/A self datalen N/A N/A N/A self failUnless N/A clientF done client didn't see connection dropped N/A N/A N/A N/A d addCallback check N/A N/A MyHCProtocol N/A AccumulatingProtocol N/A N/A N/A implements IHalfCloseableProtocol N/A readHalfClosed False N/A writeHalfClosed False readConnectionLost N/A N/A self N/A N/A N/A N/A self readHalfClosed True N/A N/A self writeHalfClosed N/A N/A N/A N/A self connectionLost None N/A writeConnectionLost N/A N/A self N/A N/A N/A N/A self writeHalfClosed True N/A N/A self readHalfClosed N/A N/A N/A N/A self connectionLost None N/A N/A MyHCFactory N/A N/A protocol ServerFactory N/A N/A called 0 N/A protocolConnectionMade None buildProtocol N/A N/A self addr N/A N/A N/A N/A self called 1 N/A p N/A MyHCProtocol N/A N/A p factory self N/A N/A self protocol p N/A p N/A N/A HalfCloseTestCase N/A N/A unittest TestCase N/A N/A Test half-closing connections. setUp N/A N/A self N/A N/A N/A N/A self f f N/A MyHCFactory N/A N/A self p p N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A N/A N/A self addCleanup N/A p stopListening N/A d N/A loopUntil N/A N/A N/A N/A N/A p connected N/A N/A self cf N/A N/A protocol ClientCreator reactor MyHCProtocol N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A N/A self cf connectTCP N/A N/A N/A p getHost host N/A N/A N/A p getHost port N/A N/A N/A d addCallback N/A self _setUp N/A d N/A _setUp N/A N/A self client N/A N/A N/A N/A self client client N/A N/A self clientProtoConnectionLost N/A N/A self client closedDeferred N/A N/A defer Deferred N/A N/A N/A self assertEquals N/A N/A N/A self client transport connected 1 N/A N/A loopUntil N/A N/A N/A N/A N/A N/A getattr N/A self f protocol None None N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A self client closed 0 N/A N/A N/A N/A N/A self client transport loseConnection N/A d N/A N/A defer maybeDeferred N/A N/A self p stopListening N/A N/A N/A d addCallback N/A N/A N/A ign N/A N/A self clientProtoConnectionLost N/A N/A N/A d addCallback N/A self _tearDown N/A d N/A _tearDown N/A N/A self ignored N/A N/A N/A N/A N/A self assertEquals N/A N/A self client closed 1 N/A N/A N/A self assertEquals N/A N/A N/A self f protocol closed 0 N/A d N/A N/A defer Deferred _connectionLost N/A N/A reason N/A N/A N/A N/A N/A N/A self f protocol closed 1 N/A N/A N/A d callback None N/A N/A N/A N/A N/A self f protocol connectionLost _connectionLost N/A N/A N/A N/A N/A N/A self f protocol transport loseConnection N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A self assertEquals N/A N/A N/A self f protocol closed 1 N/A d N/A testCloseWriteCloser N/A N/A self N/A N/A N/A client N/A self client N/A f N/A self f N/A t N/A client transport N/A N/A N/A t write hello N/A d N/A loopUntil N/A N/A N/A N/A N/A N/A len N/A t _tempDataBuffer 0 loseWrite N/A N/A ignored N/A N/A N/A N/A N/A t loseWriteConnection N/A N/A loopUntil N/A N/A N/A N/A N/A t _writeDisconnected N/A check N/A N/A ignored N/A N/A N/A N/A N/A self assertEquals N/A client closed False N/A N/A N/A self assertEquals N/A client writeHalfClosed True N/A N/A N/A self assertEquals N/A client readHalfClosed False N/A N/A loopUntil N/A N/A N/A N/A N/A N/A f protocol readHalfClosed N/A write N/A N/A ignored N/A N/A N/A w N/A N/A client transport write N/A N/A w  world N/A N/A w lalala fooled you N/A N/A N/A self assertEquals 0 N/A len N/A N/A client transport _tempDataBuffer N/A N/A N/A self assertEquals N/A N/A f protocol data hello N/A N/A N/A self assertEquals N/A N/A f protocol closed False N/A N/A N/A self assertEquals N/A N/A f protocol readHalfClosed True N/A N/A N/A N/A N/A N/A N/A N/A d addCallback loseWrite addCallback check addCallback write N/A testWriteCloseNotification N/A N/A self N/A N/A N/A f N/A self f N/A N/A N/A N/A N/A f protocol transport loseWriteConnection N/A d N/A N/A defer gatherResults N/A N/A loopUntil N/A N/A N/A N/A N/A N/A f protocol writeHalfClosed N/A loopUntil N/A N/A N/A N/A N/A N/A self client readHalfClosed N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self assertEquals N/A N/A f protocol readHalfClosed False N/A d N/A N/A HalfClose2TestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self f f N/A MyServerFactory N/A N/A N/A self f protocolConnectionMade N/A N/A defer Deferred N/A N/A self p p N/A N/A reactor listenTCP 0 f interface 127.0.0.1 N/A d N/A N/A N/A N/A protocol ClientCreator reactor AccumulatingProtocol connectTCP N/A N/A N/A p getHost host N/A N/A N/A p getHost port N/A N/A N/A d addCallback N/A self _gotClient N/A d N/A _gotClient N/A N/A self client N/A N/A N/A N/A self client client N/A N/A N/A self f protocolConnectionMade N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A self client transport loseConnection N/A N/A N/A N/A self p stopListening N/A testNoNotification N/A N/A self N/A N/A N/A 
        TCP protocols support half-close connections, but not all of them
        support being notified of write closes.  In this case, test that
        half-closing the connection causes the peer's connection to be
        closed.
         N/A N/A N/A N/A N/A self client transport write hello N/A N/A N/A N/A N/A self client transport loseWriteConnection N/A N/A N/A N/A self f protocol closedDeferred d N/A N/A defer Deferred N/A N/A N/A self client closedDeferred d2 N/A N/A defer Deferred N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A self assertEqual N/A N/A N/A self f protocol data hello N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A self assertEqual N/A N/A N/A self f protocol closed True N/A N/A N/A defer gatherResults N/A d d2 N/A testShutdownException N/A N/A self N/A N/A N/A 
        If the other side has already closed its connection,
        loseWriteConnection should pass silently.
         N/A N/A N/A N/A N/A N/A self f protocol transport loseConnection N/A N/A N/A N/A N/A self client transport write X N/A N/A N/A N/A N/A self client transport loseWriteConnection N/A N/A N/A N/A self f protocol closedDeferred d N/A N/A defer Deferred N/A N/A N/A self client closedDeferred d2 N/A N/A defer Deferred N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A self failUnlessEqual N/A N/A N/A self f protocol closed True N/A N/A N/A defer gatherResults N/A d d2 N/A N/A HalfCloseBuggyApplicationTests N/A N/A unittest TestCase N/A N/A 
    Test half-closing connections where notification code has bugs.
     setUp N/A N/A self N/A N/A N/A 
        Set up a server and connect a client to it.  Return a Deferred which
        only fires once this is done.
         N/A N/A self serverFactory N/A MyHCFactory N/A N/A N/A self serverFactory protocolConnectionMade N/A N/A defer Deferred N/A N/A self port N/A N/A reactor listenTCP 0 N/A self serverFactory interface 127.0.0.1 N/A N/A N/A self addCleanup N/A N/A self port stopListening N/A addr N/A N/A N/A self port getHost N/A creator N/A N/A protocol ClientCreator reactor MyHCProtocol N/A clientDeferred N/A N/A creator connectTCP N/A addr host N/A addr port setClient N/A N/A clientProtocol N/A N/A N/A N/A self clientProtocol clientProtocol N/A N/A N/A N/A clientDeferred addCallback setClient N/A N/A N/A defer gatherResults N/A N/A N/A self serverFactory protocolConnectionMade clientDeferred N/A aBug N/A N/A self N/A args N/A N/A 
        Fake implementation of a callback which illegally raises an
        exception.
         N/A N/A RuntimeError ONO I AM BUGGY CODE N/A _notificationRaisesTest N/A N/A self N/A N/A N/A 
        Helper for testing that an exception is logged by the time the
        client protocol loses its connection.
         N/A closed N/A N/A self clientProtocol closedDeferred N/A N/A defer Deferred N/A N/A N/A N/A N/A self clientProtocol transport loseWriteConnection check N/A N/A ignored N/A N/A N/A errors N/A N/A self flushLoggedErrors RuntimeError N/A N/A N/A self assertEqual N/A len errors 1 N/A N/A N/A N/A closed addCallback check N/A closed N/A test_readNotificationRaises N/A N/A self N/A N/A N/A 
        If C{readConnectionLost} raises an exception when the transport
        calls it to notify the protocol of that event, the exception should
        be logged and the protocol should be disconnected completely.
         N/A N/A N/A N/A self serverFactory protocol readConnectionLost N/A self aBug N/A N/A N/A self _notificationRaisesTest N/A test_writeNotificationRaises N/A N/A self N/A N/A N/A 
        If C{writeConnectionLost} raises an exception when the transport
        calls it to notify the protocol of that event, the exception should
        be logged and the protocol should be disconnected completely.
         N/A N/A N/A self clientProtocol writeConnectionLost N/A self aBug N/A N/A N/A self _notificationRaisesTest N/A N/A LogTestCase N/A N/A unittest TestCase N/A N/A 
    Test logging facility of TCP base classes.
     test_logstrClientSetup N/A N/A self N/A N/A N/A 
        Check that the log customization of the client transport happens
        once the client is connected.
         N/A server N/A MyServerFactory N/A client N/A MyClientFactory N/A N/A client protocolConnectionMade N/A N/A defer Deferred N/A port N/A N/A reactor listenTCP 0 server interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A connector N/A N/A reactor connectTCP N/A N/A N/A port getHost host N/A N/A N/A port getHost port client N/A N/A N/A self addCleanup N/A connector disconnect N/A N/A N/A self assertEquals N/A N/A connector transport logstr Uninitialized cb N/A N/A ign N/A N/A N/A N/A N/A self assertEquals N/A N/A connector transport logstr AccumulatingProtocol,client N/A N/A N/A N/A N/A client protocolConnectionMade addCallback cb N/A N/A client protocolConnectionMade N/A N/A PauseProducingTestCase N/A N/A unittest TestCase N/A N/A 
    Test some behaviors of pausing the production of a transport.
     test_pauseProducingInConnectionMade N/A N/A self N/A N/A N/A 
        In C{connectionMade} of a client protocol, C{pauseProducing} used to be
        ignored: this test is here to ensure it's not ignored.
         N/A server N/A MyServerFactory N/A client N/A MyClientFactory N/A N/A client protocolConnectionMade N/A N/A defer Deferred N/A port N/A N/A reactor listenTCP 0 server interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A connector N/A N/A reactor connectTCP N/A N/A N/A port getHost host N/A N/A N/A port getHost port client N/A N/A N/A self addCleanup N/A connector disconnect checkInConnectionMade N/A N/A proto N/A N/A N/A tr N/A proto transport N/A N/A N/A self assertIn tr N/A N/A N/A reactor getReaders N/A N/A reactor getWriters N/A N/A N/A N/A proto transport pauseProducing N/A N/A N/A self assertNotIn tr N/A N/A N/A reactor getReaders N/A N/A reactor getWriters N/A d N/A N/A defer Deferred N/A N/A N/A d addCallback checkAfterConnectionMade N/A N/A N/A reactor callLater 0 N/A d callback proto N/A d N/A checkAfterConnectionMade N/A N/A proto N/A N/A N/A tr N/A proto transport N/A N/A N/A self assertNotIn tr N/A N/A N/A reactor getReaders N/A N/A reactor getWriters N/A N/A N/A N/A N/A client protocolConnectionMade addCallback checkInConnectionMade N/A N/A client protocolConnectionMade N/A N/A N/A N/A N/A N/A interfaces IReactorFDSet providedBy reactor N/A N/A N/A test_pauseProducingInConnectionMade skip Reactor not providing IReactorFDSet N/A CallBackOrderTestCase N/A N/A unittest TestCase N/A N/A 
    Test the order of reactor callbacks
     test_loseOrder N/A N/A self N/A N/A N/A 
        Check that Protocol.connectionLost is called before factory's
        clientConnectionLost
         N/A server N/A MyServerFactory N/A N/A server protocolConnectionMade N/A N/A N/A N/A defer Deferred addCallback N/A N/A N/A proto N/A N/A N/A self addCleanup N/A N/A proto transport loseConnection N/A client N/A MyClientFactory N/A N/A client protocolConnectionLost N/A N/A defer Deferred N/A N/A client protocolConnectionMade N/A N/A defer Deferred _cbCM N/A N/A res N/A N/A N/A 
            protocol.connectionMade callback
             N/A N/A N/A reactor callLater 0 N/A N/A N/A client protocol transport loseConnection N/A N/A N/A N/A N/A client protocolConnectionMade addCallback _cbCM N/A port N/A N/A reactor listenTCP 0 server interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A connector N/A N/A reactor connectTCP N/A N/A N/A port getHost host N/A N/A N/A port getHost port client N/A N/A N/A self addCleanup N/A connector disconnect _cbCCL N/A N/A res N/A N/A N/A 
            factory.clientConnectionLost callback
             N/A CCL N/A _cbCL N/A N/A res N/A N/A N/A 
            protocol.connectionLost callback
             N/A CL N/A _cbGather N/A N/A res N/A N/A N/A N/A N/A self assertEquals res N/A CL CCL N/A N/A d N/A N/A defer gatherResults N/A N/A N/A N/A client protocolConnectionLost addCallback _cbCL N/A N/A N/A client deferred addCallback _cbCCL N/A N/A N/A d addCallback _cbGather N/A N/A N/A N/A N/A resource N/A N/A N/A ImportError N/A N/A N/A N/A numRounds N/A N/A N/A N/A resource getrlimit N/A resource RLIMIT_NOFILE N/A 0 10 N/A N/A ProperlyCloseFilesTestCase numberRounds numRounds