Module Expr Str Assign NameStore NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list Assign NameStore Call NameLoad Dict Str ListLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad TupleLoad Str Num Num Num Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body Assign NameStore Str FunctionDef arguments args NameParam defaults body Pass decorator_list Assign NameStore Call NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str TupleLoad Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Dict Str Str ListLoad Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call 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 BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad BinOpMult Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad BinOpMult Str Num BinOpMult Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Return Call NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num FunctionDef arguments args NameParam defaults NameLoad body Raise Call NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Str Str NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Str decorator_list Assign NameStore Call NameLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Return Call NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num orelse Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Return Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Dict Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Return Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args TupleStore NameStore NameStore defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Str Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr 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 AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str 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 AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Return Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad NameLoad ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad TupleLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Assign NameStore ListLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Return Call NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Str 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 Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str Expr Call NameLoad NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad Str Str NameLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str ListLoad Str Str ListLoad Str Expr Call AttributeLoad Call NameLoad Str Str NameLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad Str Str Delete SubscriptDel NameLoad Index Num SubscriptDel NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad decorator_list Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Call NameLoad Dict NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Str Str Call NameLoad Dict Str ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str BinOpMult Str Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign ListStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{twisted.web._newclient}.
 N/A __metaclass__ type zope.interface implements zope.interface.verify verifyObject twisted.python log twisted.python.failure Failure twisted.internet.interfaces IConsumer IPushProducer twisted.internet.error ConnectionDone ConnectionLost twisted.internet.defer Deferred succeed fail twisted.internet.protocol Protocol twisted.trial.unittest TestCase twisted.test.proto_helpers StringTransport AccumulatingProtocol twisted.web._newclient UNKNOWN_LENGTH STATUS HEADER BODY DONE twisted.web._newclient Request Response HTTPParser HTTPClientParser twisted.web._newclient BadResponseVersion ParseError HTTP11ClientProtocol twisted.web._newclient ChunkedEncoder RequestGenerationFailed twisted.web._newclient RequestTransmissionFailed ResponseFailed twisted.web._newclient WrongBodyLength RequestNotSent twisted.web._newclient ConnectionAborted ResponseNeverReceived twisted.web._newclient BadHeaders ResponseDone PotentialDataLoss ExcessWrite twisted.web._newclient TransportProxyProducer LengthEnforcingConsumer makeStatefulDispatcher twisted.web.http_headers Headers twisted.web.http _DataLoss twisted.web.iweb IBodyProducer IResponse ArbitraryException N/A Exception N/A N/A 
    A unique, arbitrary exception type which L{twisted.web._newclient} knows
    nothing about.
     N/A AnotherArbitraryException N/A Exception N/A N/A 
    Similar to L{ArbitraryException} but with a different identity.
     N/A N/A _boringHeaders N/A Headers N/A host N/A example.com assertWrapperExceptionTypes N/A N/A self deferred mainType reasonTypes N/A N/A N/A 
    Assert that the given L{Deferred} fails with the exception given by
    C{mainType} and that the exceptions wrapped by the instance of C{mainType}
    it fails with match the list of exception types given by C{reasonTypes}.

    This is a helper for testing failures of exceptions which subclass
    L{_newclient._WrapperException}.

    @param self: A L{TestCase} instance which will be used to make the
        assertions.

    @param deferred: The L{Deferred} which is expected to fail with
        C{mainType}.

    @param mainType: A L{_newclient._WrapperException} subclass which will be
        trapped on C{deferred}.

    @param reasonTypes: A sequence of exception types which will be trapped on
        the resulting L{mainType} exception instance's C{reasons} sequence.

    @return: A L{Deferred} which fires with the C{mainType} instance
        C{deferred} fails with, or which fails somehow.
     cbFailed N/A N/A err N/A N/A N/A N/A reason type N/A zip N/A err reasons reasonTypes N/A N/A N/A N/A reason trap type N/A N/A N/A self assertEqual N/A len N/A err reasons N/A len reasonTypes N/A len(%s) != len(%s) N/A N/A err reasons reasonTypes N/A err N/A N/A d N/A N/A self assertFailure deferred mainType N/A N/A N/A d addCallback cbFailed N/A d N/A assertResponseFailed N/A N/A self deferred reasonTypes N/A N/A N/A 
    A simple helper to invoke L{assertWrapperExceptionTypes} with a C{mainType}
    of L{ResponseFailed}.
     N/A N/A assertWrapperExceptionTypes self deferred ResponseFailed reasonTypes N/A assertRequestGenerationFailed N/A N/A self deferred reasonTypes N/A N/A N/A 
    A simple helper to invoke L{assertWrapperExceptionTypes} with a C{mainType}
    of L{RequestGenerationFailed}.
     N/A N/A assertWrapperExceptionTypes self deferred RequestGenerationFailed reasonTypes N/A assertRequestTransmissionFailed N/A N/A self deferred reasonTypes N/A N/A N/A 
    A simple helper to invoke L{assertWrapperExceptionTypes} with a C{mainType}
    of L{RequestTransmissionFailed}.
     N/A N/A assertWrapperExceptionTypes self deferred RequestTransmissionFailed reasonTypes N/A justTransportResponse N/A N/A transport N/A N/A N/A 
    Helper function for creating a Response which uses the given transport.
    All of the other parameters to L{Response.__init__} are filled with
    arbitrary values.  Only use this method if you don't care about any of
    them.
     N/A N/A Response N/A HTTP 1 1 200 OK _boringHeaders transport N/A MakeStatefulDispatcherTests N/A TestCase N/A N/A 
    Tests for L{makeStatefulDispatcher}.
     test_functionCalledByState N/A N/A self N/A N/A N/A 
        A method defined with L{makeStatefulDispatcher} invokes a second
        method based on the current state of the object.
         Foo N/A N/A N/A _state A bar N/A N/A self N/A N/A N/A N/A N/A bar N/A makeStatefulDispatcher quux bar _quux_A N/A N/A self N/A N/A N/A a N/A _quux_B N/A N/A self N/A N/A N/A b N/A N/A N/A stateful N/A Foo N/A N/A N/A self assertEqual N/A N/A stateful bar a N/A N/A stateful _state B N/A N/A N/A self assertEqual N/A N/A stateful bar b N/A N/A stateful _state C N/A N/A N/A self assertRaises RuntimeError N/A stateful bar N/A N/A _HTTPParserTests N/A object N/A N/A 
    Base test class for L{HTTPParser} which is responsible for the bulk of
    the task of parsing HTTP bytes.
     N/A sep None test_statusCallback N/A N/A self N/A N/A N/A 
        L{HTTPParser} calls its C{statusReceived} method when it receives a
        status line.
         N/A status N/A N/A protocol N/A HTTPParser N/A N/A protocol statusReceived N/A status append N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A self assertEqual N/A protocol state STATUS N/A N/A N/A protocol dataReceived N/A HTTP/1.1 200 OK N/A self sep N/A N/A N/A self assertEqual status N/A HTTP/1.1 200 OK N/A N/A N/A self assertEqual N/A protocol state HEADER N/A _headerTestSetup N/A N/A self N/A N/A N/A header N/A N/A protocol N/A HTTPParser N/A N/A protocol headerReceived N/A header __setitem__ N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived N/A HTTP/1.1 200 OK N/A self sep N/A N/A header protocol N/A test_headerCallback N/A N/A self N/A N/A N/A 
        L{HTTPParser} calls its C{headerReceived} method when it receives a
        header.
         N/A N/A header protocol N/A N/A self _headerTestSetup N/A N/A N/A protocol dataReceived N/A X-Foo:bar N/A self sep N/A N/A N/A protocol dataReceived N/A self sep N/A N/A N/A self assertEqual header N/A X-Foo bar N/A N/A N/A self assertEqual N/A protocol state BODY N/A test_continuedHeaderCallback N/A N/A self N/A N/A N/A 
        If a header is split over multiple lines, L{HTTPParser} calls
        C{headerReceived} with the entire value once it is received.
         N/A N/A header protocol N/A N/A self _headerTestSetup N/A N/A N/A protocol dataReceived N/A X-Foo: bar N/A self sep N/A N/A N/A protocol dataReceived N/A  baz N/A self sep N/A N/A N/A protocol dataReceived N/A 	quux N/A self sep N/A N/A N/A protocol dataReceived N/A self sep N/A N/A N/A self assertEqual header N/A X-Foo bar baz	quux N/A N/A N/A self assertEqual N/A protocol state BODY N/A test_fieldContentWhitespace N/A N/A self N/A N/A N/A 
        Leading and trailing linear whitespace is stripped from the header
        value passed to the C{headerReceived} callback.
         N/A N/A header protocol N/A N/A self _headerTestSetup N/A value N/A  	 %(sep)s bar 	%(sep)s 	%(sep)s N/A dict sep N/A self sep N/A N/A N/A protocol dataReceived N/A X-Bar: value N/A N/A N/A protocol dataReceived N/A X-Foo: value N/A N/A N/A protocol dataReceived N/A self sep N/A N/A N/A self assertEqual header N/A X-Foo X-Bar bar bar N/A test_allHeadersCallback N/A N/A self N/A N/A N/A 
        After the last header is received, L{HTTPParser} calls
        C{allHeadersReceived}.
         N/A called N/A N/A N/A header protocol N/A N/A self _headerTestSetup allHeadersReceived N/A N/A N/A N/A N/A N/A N/A called append N/A protocol state N/A N/A protocol state STATUS N/A N/A N/A protocol allHeadersReceived allHeadersReceived N/A N/A N/A protocol dataReceived N/A self sep N/A N/A N/A self assertEqual called N/A HEADER N/A N/A N/A self assertEqual N/A protocol state STATUS N/A test_noHeaderCallback N/A N/A self N/A N/A N/A 
        If there are no headers in the message, L{HTTPParser} does not call
        C{headerReceived}.
         N/A N/A header protocol N/A N/A self _headerTestSetup N/A N/A N/A protocol dataReceived N/A self sep N/A N/A N/A self assertEqual header N/A N/A N/A N/A self assertEqual N/A protocol state BODY N/A test_headersSavedOnResponse N/A N/A self N/A N/A N/A 
        All headers received by L{HTTPParser} are added to
        L{HTTPParser.headers}.
         N/A protocol N/A HTTPParser N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived N/A HTTP/1.1 200 OK N/A self sep N/A N/A N/A protocol dataReceived N/A X-Foo: bar N/A self sep N/A N/A N/A protocol dataReceived N/A X-Foo: baz N/A self sep N/A N/A N/A protocol dataReceived N/A self sep N/A expected N/A N/A X-Foo N/A bar baz N/A N/A N/A self assertEqual expected N/A list N/A N/A N/A protocol headers getAllRawHeaders N/A test_connectionControlHeaders N/A N/A self N/A N/A N/A 
        L{HTTPParser.isConnectionControlHeader} returns C{True} for headers
        which are always connection control headers (similar to "hop-by-hop"
        headers from RFC 2616 section 13.5.1) and C{False} for other headers.
         N/A protocol N/A HTTPParser N/A connHeaderNames N/A content-length connection keep-alive te trailers transfer-encoding upgrade proxy-connection N/A header connHeaderNames N/A N/A N/A N/A self assertTrue N/A N/A protocol isConnectionControlHeader header N/A Expecting %r to be a connection control header, but wasn't N/A header N/A N/A N/A self assertFalse N/A N/A protocol isConnectionControlHeader date Expecting the arbitrarily selected 'date' header to not be a connection control header, but was. N/A test_switchToBodyMode N/A N/A self N/A N/A N/A 
        L{HTTPParser.switchToBodyMode} raises L{RuntimeError} if called more
        than once.
         N/A protocol N/A HTTPParser N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol switchToBodyMode N/A object N/A N/A N/A self assertRaises RuntimeError N/A protocol switchToBodyMode N/A object N/A N/A HTTPParserTestsRFCComplaintDelimeter N/A _HTTPParserTests TestCase N/A N/A 
    L{_HTTPParserTests} using standard CR LF newlines.
     N/A sep N/A HTTPParserTestsNonRFCComplaintDelimeter N/A _HTTPParserTests TestCase N/A N/A 
    L{_HTTPParserTests} using bare LF newlines.
     N/A sep N/A HTTPClientParserTests N/A TestCase N/A N/A 
    Tests for L{HTTPClientParser} which is responsible for parsing HTTP
    response messages.
     test_parseVersion N/A N/A self N/A N/A N/A 
        L{HTTPClientParser.parseVersion} parses a status line into its three
        components.
         N/A protocol N/A HTTPClientParser None None N/A N/A N/A self assertEqual N/A N/A protocol parseVersion CANDY/7.2 N/A CANDY 7 2 N/A test_parseBadVersion N/A N/A self N/A N/A N/A 
        L{HTTPClientParser.parseVersion} raises L{ValueError} when passed an
        unparsable version.
         N/A protocol N/A HTTPClientParser None None N/A e BadResponseVersion N/A f N/A protocol parseVersion checkParsing N/A N/A s N/A N/A N/A exc N/A N/A self assertRaises e f s N/A N/A N/A self assertEqual N/A exc data s N/A N/A N/A checkParsing foo N/A N/A checkParsing foo/bar/baz N/A N/A checkParsing foo/ N/A N/A checkParsing foo/.. N/A N/A checkParsing foo/a.b N/A N/A checkParsing foo/-1.-1 N/A test_responseStatusParsing N/A N/A self N/A N/A N/A 
        L{HTTPClientParser.statusReceived} parses the version, code, and phrase
        from the status line and stores them on the response object.
         N/A request N/A Request GET / _boringHeaders None N/A protocol N/A HTTPClientParser request None N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A N/A N/A self assertEqual N/A N/A protocol response version N/A HTTP 1 1 N/A N/A N/A self assertEqual N/A N/A protocol response code 200 N/A N/A N/A self assertEqual N/A N/A protocol response phrase OK N/A test_badResponseStatus N/A N/A self N/A N/A N/A 
        L{HTTPClientParser.statusReceived} raises L{ParseError} if it is called
        with a status line which cannot be parsed.
         N/A protocol N/A HTTPClientParser None None checkParsing N/A N/A s N/A N/A N/A exc N/A N/A self assertRaises ParseError N/A protocol statusReceived s N/A N/A N/A self assertEqual N/A exc data s N/A N/A N/A checkParsing foo N/A N/A checkParsing HTTP/1.1 200 N/A N/A checkParsing HTTP/1.1 bar OK N/A _noBodyTest N/A N/A self request response N/A N/A N/A 
        Assert that L{HTTPClientParser} parses the given C{response} to
        C{request}, resulting in a response with no body and no extra bytes and
        leaving the transport in the producing state.

        @param request: A L{Request} instance which might have caused a server
            to return the given response.
        @param response: A string giving the response to be parsed.

        @return: A C{dict} of headers from the response.
         N/A header N/A N/A finished N/A N/A protocol N/A HTTPClientParser request N/A finished append N/A N/A protocol headerReceived N/A header __setitem__ N/A body N/A N/A N/A protocol _bodyDataReceived N/A body append N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A N/A N/A protocol dataReceived response N/A N/A N/A self assertEqual N/A transport producerState producing N/A N/A N/A self assertEqual N/A protocol state DONE N/A N/A N/A self assertEqual body N/A N/A N/A N/A self assertEqual finished N/A N/A N/A N/A self assertEqual N/A N/A protocol response length 0 N/A header N/A test_headResponse N/A N/A self N/A N/A N/A 
        If the response is to a HEAD request, no body is expected, the body
        callback is not invoked, and the I{Content-Length} header is passed to
        the header callback.
         N/A request N/A Request HEAD / _boringHeaders None N/A status HTTP/1.1 200 OK
Content-Length: 10

 N/A header N/A N/A self _noBodyTest request status N/A N/A N/A self assertEqual header N/A Content-Length 10 N/A test_noContentResponse N/A N/A self N/A N/A N/A 
        If the response code is I{NO CONTENT} (204), no body is expected and
        the body callback is not invoked.
         N/A request N/A Request GET / _boringHeaders None N/A status HTTP/1.1 204 NO CONTENT

 N/A N/A N/A self _noBodyTest request status N/A test_notModifiedResponse N/A N/A self N/A N/A N/A 
        If the response code is I{NOT MODIFIED} (304), no body is expected and
        the body callback is not invoked.
         N/A request N/A Request GET / _boringHeaders None N/A status HTTP/1.1 304 NOT MODIFIED

 N/A N/A N/A self _noBodyTest request status N/A test_responseHeaders N/A N/A self N/A N/A N/A 
        The response headers are added to the response object's C{headers}
        L{Headers} instance.
         N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A N/A N/A rest N/A None N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A N/A N/A protocol dataReceived X-Foo: bar
 N/A N/A N/A protocol dataReceived N/A N/A N/A self assertEqual N/A protocol connHeaders N/A Headers N/A N/A N/A N/A self assertEqual N/A N/A protocol response headers N/A Headers N/A x-foo N/A bar N/A N/A N/A self assertIdentical N/A N/A protocol response length UNKNOWN_LENGTH N/A test_connectionHeaders N/A N/A self N/A N/A N/A 
        The connection control headers are added to the parser's C{connHeaders}
        L{Headers} instance.
         N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A N/A N/A rest N/A None N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A N/A N/A protocol dataReceived Content-Length: 123
 N/A N/A N/A protocol dataReceived Connection: close
 N/A N/A N/A protocol dataReceived N/A N/A N/A self assertEqual N/A N/A protocol response headers N/A Headers N/A N/A N/A N/A self assertEqual N/A protocol connHeaders N/A Headers N/A content-length connection N/A 123 N/A close N/A N/A N/A self assertEqual N/A N/A protocol response length 123 N/A test_headResponseContentLengthEntityHeader N/A N/A self N/A N/A N/A 
        If a HEAD request is made, the I{Content-Length} header in the response
        is added to the response headers, not the connection control headers.
         N/A protocol N/A HTTPClientParser N/A Request HEAD / _boringHeaders None N/A N/A N/A rest N/A None N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A N/A N/A protocol dataReceived Content-Length: 123
 N/A N/A N/A protocol dataReceived N/A N/A N/A self assertEqual N/A N/A protocol response headers N/A Headers N/A content-length N/A 123 N/A N/A N/A self assertEqual N/A protocol connHeaders N/A Headers N/A N/A N/A N/A self assertEqual N/A N/A protocol response length 0 N/A test_contentLength N/A N/A self N/A N/A N/A 
        If a response includes a body with a length given by the
        I{Content-Length} header, the bytes which make up the body are passed
        to the C{_bodyDataReceived} callback on the L{HTTPParser}.
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A finished append N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A body N/A N/A N/A N/A protocol response _bodyDataReceived N/A body append N/A N/A N/A protocol dataReceived Content-Length: 10
 N/A N/A N/A protocol dataReceived N/A N/A N/A self assertEqual N/A transport producerState paused N/A N/A N/A self assertEqual N/A protocol state BODY N/A N/A N/A protocol dataReceived N/A x 6 N/A N/A N/A self assertEqual body N/A N/A x 6 N/A N/A N/A self assertEqual N/A protocol state BODY N/A N/A N/A protocol dataReceived N/A y 4 N/A N/A N/A self assertEqual body N/A N/A x 6 N/A y 4 N/A N/A N/A self assertEqual N/A protocol state DONE N/A N/A N/A self assertTrue finished N/A N/A test_zeroContentLength N/A N/A self N/A N/A N/A 
        If a response includes a I{Content-Length} header indicating zero bytes
        in the response, L{Response.length} is set accordingly and no data is
        delivered to L{Response._bodyDataReceived}.
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A finished append N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A body N/A N/A N/A N/A protocol response _bodyDataReceived N/A body append N/A N/A N/A protocol dataReceived Content-Length: 0
 N/A N/A N/A protocol dataReceived N/A N/A N/A self assertEqual N/A protocol state DONE N/A N/A N/A self assertEqual body N/A N/A N/A N/A self assertTrue finished N/A N/A N/A N/A self assertEqual N/A N/A protocol response length 0 N/A test_multipleContentLengthHeaders N/A N/A self N/A N/A N/A 
        If a response includes multiple I{Content-Length} headers,
        L{HTTPClientParser.dataReceived} raises L{ValueError} to indicate that
        the response is invalid and the transport is now unusable.
         N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None None N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A self assertRaises ValueError N/A protocol dataReceived HTTP/1.1 200 OK
Content-Length: 1
Content-Length: 2

 N/A test_extraBytesPassedBack N/A N/A self N/A N/A N/A 
        If extra bytes are received past the end of a response, they are passed
        to the finish callback.
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A finished append N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A N/A N/A protocol dataReceived Content-Length: 0
 N/A N/A N/A protocol dataReceived 
Here is another thing! N/A N/A N/A self assertEqual N/A protocol state DONE N/A N/A N/A self assertEqual finished N/A Here is another thing! N/A test_extraBytesPassedBackHEAD N/A N/A self N/A N/A N/A 
        If extra bytes are received past the end of the headers of a response
        to a HEAD request, they are passed to the finish callback.
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request HEAD / _boringHeaders None N/A finished append N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A N/A N/A protocol dataReceived Content-Length: 12
 N/A N/A N/A protocol dataReceived 
Here is another thing! N/A N/A N/A self assertEqual N/A protocol state DONE N/A N/A N/A self assertEqual finished N/A Here is another thing! N/A test_chunkedResponseBody N/A N/A self N/A N/A N/A 
        If the response headers indicate the response body is encoded with the
        I{chunked} transfer encoding, the body is decoded according to that
        transfer encoding before being passed to L{Response._bodyDataReceived}.
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A finished append N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A body N/A N/A N/A N/A protocol response _bodyDataReceived N/A body append N/A N/A N/A protocol dataReceived Transfer-Encoding: chunked
 N/A N/A N/A protocol dataReceived N/A N/A N/A self assertEqual body N/A N/A N/A N/A self assertIdentical N/A N/A protocol response length UNKNOWN_LENGTH N/A N/A N/A protocol dataReceived 3
a N/A N/A N/A self assertEqual body N/A a N/A N/A N/A protocol dataReceived bc
 N/A N/A N/A self assertEqual body N/A a bc N/A N/A N/A protocol dataReceived 0

extra N/A N/A N/A self assertEqual finished N/A extra N/A test_unknownContentLength N/A N/A self N/A N/A N/A 
        If a response does not include a I{Transfer-Encoding} or a
        I{Content-Length}, the end of response body is indicated by the
        connection being closed.
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A finished append N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A body N/A N/A N/A N/A protocol response _bodyDataReceived N/A body append N/A N/A N/A protocol dataReceived N/A N/A N/A protocol dataReceived foo N/A N/A N/A protocol dataReceived bar N/A N/A N/A self assertEqual body N/A foo bar N/A N/A N/A protocol connectionLost N/A ConnectionDone simulated end of connection N/A N/A N/A self assertEqual finished N/A N/A test_contentLengthAndTransferEncoding N/A N/A self N/A N/A N/A 
        According to RFC 2616, section 4.4, point 3, if I{Content-Length} and
        I{Transfer-Encoding: chunked} are present, I{Content-Length} MUST be
        ignored
         N/A finished N/A N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None N/A finished append N/A transport N/A StringTransport N/A N/A N/A protocol makeConnection transport N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
 N/A body N/A N/A N/A N/A protocol response _bodyDataReceived N/A body append N/A N/A N/A protocol dataReceived Content-Length: 102
Transfer-Encoding: chunked

3
abc
0

 N/A N/A N/A self assertEqual body N/A abc N/A N/A N/A self assertEqual finished N/A N/A test_connectionLostBeforeBody N/A N/A self N/A N/A N/A 
        If L{HTTPClientParser.connectionLost} is called before the headers are
        finished, the C{_responseDeferred} is fired with the L{Failure} passed
        to C{connectionLost}.
         N/A transport N/A StringTransport N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None None N/A N/A N/A protocol makeConnection transport N/A responseDeferred N/A protocol _responseDeferred N/A N/A N/A protocol connectionLost N/A Failure N/A ArbitraryException N/A N/A assertResponseFailed self responseDeferred N/A ArbitraryException N/A test_connectionLostWithError N/A N/A self N/A N/A N/A 
        If one of the L{Response} methods called by
        L{HTTPClientParser.connectionLost} raises an exception, the exception
        is logged and not re-raised.
         N/A transport N/A StringTransport N/A protocol N/A HTTPClientParser N/A Request GET / _boringHeaders None None N/A N/A N/A protocol makeConnection transport N/A response N/A N/A N/A N/A N/A protocol _responseDeferred addCallback N/A response append N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-Length: 1

 N/A response N/A response N/A 0 fakeBodyDataFinished N/A N/A err N/A None N/A N/A N/A ArbitraryException N/A N/A N/A response _bodyDataFinished fakeBodyDataFinished N/A N/A N/A protocol connectionLost None N/A N/A N/A self assertEqual N/A len N/A N/A self flushLoggedErrors ArbitraryException 1 N/A test_noResponseAtAll N/A N/A self N/A N/A N/A 
        If no response at all was received and the connection is lost, the
        resulting error is L{ResponseNeverReceived}.
         N/A protocol N/A HTTPClientParser N/A Request HEAD / _boringHeaders None N/A N/A N/A ign N/A None N/A d N/A protocol _responseDeferred N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol connectionLost N/A ConnectionLost N/A N/A N/A self assertFailure d ResponseNeverReceived N/A test_someResponseButNotAll N/A N/A self N/A N/A N/A 
        If a partial response was received and the connection is lost, the
        resulting error is L{ResponseFailed}, but not
        L{ResponseNeverReceived}.
         N/A protocol N/A HTTPClientParser N/A Request HEAD / _boringHeaders None N/A N/A N/A ign N/A None N/A d N/A protocol _responseDeferred N/A N/A N/A protocol makeConnection N/A StringTransport N/A N/A N/A protocol dataReceived 2 N/A N/A N/A protocol connectionLost N/A ConnectionLost N/A N/A N/A N/A N/A self assertFailure d ResponseFailed addCallback N/A self assertIsInstance ResponseFailed N/A N/A SlowRequest N/A N/A N/A 
    L{SlowRequest} is a fake implementation of L{Request} which is easily
    controlled externally (for example, by code in a test method).

    @ivar stopped: A flag indicating whether C{stopWriting} has been called.

    @ivar finished: After C{writeTo} is called, a L{Deferred} which was
        returned by that method.  L{SlowRequest} will never fire this
        L{Deferred}.
     N/A method GET N/A stopped False N/A persistent False writeTo N/A N/A self transport N/A N/A N/A N/A self finished N/A Deferred N/A N/A self finished N/A stopWriting N/A N/A self N/A N/A N/A N/A self stopped True N/A N/A SimpleRequest N/A N/A N/A 
    L{SimpleRequest} is a fake implementation of L{Request} which writes a
    short, fixed string to the transport passed to its C{writeTo} method and
    returns a succeeded L{Deferred}.  This vaguely emulates the behavior of a
    L{Request} with no body producer.
     N/A persistent False writeTo N/A N/A self transport N/A N/A N/A N/A N/A transport write SOME BYTES N/A N/A succeed None N/A N/A HTTP11ClientProtocolTests N/A TestCase N/A N/A 
    Tests for the HTTP 1.1 client protocol implementation,
    L{HTTP11ClientProtocol}.
     setUp N/A N/A self N/A N/A N/A 
        Create an L{HTTP11ClientProtocol} connected to a fake transport.
         N/A N/A self transport N/A StringTransport N/A N/A self protocol N/A HTTP11ClientProtocol N/A N/A N/A N/A self protocol makeConnection N/A self transport N/A test_request N/A N/A self N/A N/A N/A 
        L{HTTP11ClientProtocol.request} accepts a L{Request} and calls its
        C{writeTo} method with its own transport.
         N/A N/A N/A N/A self protocol request N/A SimpleRequest N/A N/A N/A self assertEqual N/A N/A N/A self transport value SOME BYTES N/A test_secondRequest N/A N/A self N/A N/A N/A 
        The second time L{HTTP11ClientProtocol.request} is called, it returns a
        L{Deferred} which immediately fires with a L{Failure} wrapping a
        L{RequestNotSent} exception.
         N/A N/A N/A N/A self protocol request N/A SlowRequest cbNotSent N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A N/A d N/A N/A self assertFailure N/A N/A N/A self protocol request N/A SimpleRequest RequestNotSent N/A N/A N/A d addCallback cbNotSent N/A d N/A test_requestAfterConnectionLost N/A N/A self N/A N/A N/A 
        L{HTTP11ClientProtocol.request} returns a L{Deferred} which immediately
        fires with a L{Failure} wrapping a L{RequestNotSent} if called after
        the protocol has been disconnected.
         N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ConnectionDone sad transport cbNotSent N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A N/A d N/A N/A self assertFailure N/A N/A N/A self protocol request N/A SimpleRequest RequestNotSent N/A N/A N/A d addCallback cbNotSent N/A d N/A test_failedWriteTo N/A N/A self N/A N/A N/A 
        If the L{Deferred} returned by L{Request.writeTo} fires with a
        L{Failure}, L{HTTP11ClientProtocol.request} disconnects its transport
        and returns a L{Deferred} which fires with a L{Failure} of
        L{RequestGenerationFailed} wrapping the underlying failure.
         BrokenRequest N/A N/A N/A persistent False writeTo N/A N/A self transport N/A N/A N/A N/A fail N/A ArbitraryException N/A N/A N/A d N/A N/A N/A self protocol request N/A BrokenRequest cbFailed N/A N/A ignored N/A N/A N/A N/A N/A self assertTrue N/A N/A self transport disconnecting N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ConnectionDone you asked for it N/A N/A d N/A assertRequestGenerationFailed self d N/A ArbitraryException N/A N/A N/A d addCallback cbFailed N/A d N/A test_synchronousWriteToError N/A N/A self N/A N/A N/A 
        If L{Request.writeTo} raises an exception,
        L{HTTP11ClientProtocol.request} returns a L{Deferred} which fires with
        a L{Failure} of L{RequestGenerationFailed} wrapping that exception.
         BrokenRequest N/A N/A N/A persistent False writeTo N/A N/A self transport N/A N/A N/A N/A ArbitraryException N/A N/A N/A d N/A N/A N/A self protocol request N/A BrokenRequest N/A N/A assertRequestGenerationFailed self d N/A ArbitraryException N/A test_connectionLostDuringRequestGeneration N/A N/A self mode N/A None N/A N/A 
        If L{HTTP11ClientProtocol}'s transport is disconnected before the
        L{Deferred} returned by L{Request.writeTo} fires, the L{Deferred}
        returned by L{HTTP11ClientProtocol.request} fires with a L{Failure} of
        L{RequestTransmissionFailed} wrapping the underlying failure.
         N/A request N/A SlowRequest N/A d N/A N/A N/A self protocol request request N/A d N/A assertRequestTransmissionFailed self d N/A ArbitraryException N/A N/A N/A self assertFalse N/A request stopped N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ArbitraryException N/A N/A N/A self assertTrue N/A request stopped N/A N/A mode callback N/A N/A N/A N/A N/A request finished callback None N/A N/A N/A mode errback N/A N/A N/A N/A N/A request finished errback N/A Failure N/A AnotherArbitraryException N/A errors N/A N/A self flushLoggedErrors AnotherArbitraryException N/A N/A N/A self assertEqual N/A len errors 1 N/A N/A N/A d N/A test_connectionLostBeforeGenerationFinished N/A N/A self N/A N/A N/A 
        If the request passed to L{HTTP11ClientProtocol} finishes generation
        successfully after the L{HTTP11ClientProtocol}'s connection has been
        lost, nothing happens.
         N/A N/A N/A self test_connectionLostDuringRequestGeneration callback N/A test_connectionLostBeforeGenerationFailed N/A N/A self N/A N/A N/A 
        If the request passed to L{HTTP11ClientProtocol} finished generation
        with an error after the L{HTTP11ClientProtocol}'s connection has been
        lost, nothing happens.
         N/A N/A N/A self test_connectionLostDuringRequestGeneration errback N/A test_errorMessageOnConnectionLostBeforeGenerationFailedDoesNotConfuse N/A N/A self N/A N/A N/A 
        If the request passed to L{HTTP11ClientProtocol} finished generation
        with an error after the L{HTTP11ClientProtocol}'s connection has been
        lost, an error is logged that gives a non-confusing hint to user on what
        went wrong.
         N/A errors N/A N/A N/A N/A log addObserver N/A errors append N/A N/A N/A self addCleanup N/A log removeObserver N/A errors append check N/A N/A ignore N/A N/A N/A error N/A errors N/A 0 N/A N/A N/A self assertEqual N/A error N/A why Error writing request, but not in valid state to finalize request: CONNECTION_LOST N/A N/A N/A N/A N/A N/A self test_connectionLostDuringRequestGeneration errback addCallback check N/A test_receiveSimplestResponse N/A N/A self N/A N/A N/A 
        When a response is delivered to L{HTTP11ClientProtocol}, the
        L{Deferred} previously returned by the C{request} method is called back
        with a L{Response} instance and the connection is closed.
         N/A d N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None cbRequest N/A N/A response N/A N/A N/A N/A N/A self assertEqual N/A response code 200 N/A N/A N/A self assertEqual N/A response headers N/A Headers N/A N/A N/A self assertTrue N/A N/A self transport disconnecting N/A N/A N/A self assertEqual N/A N/A self protocol state QUIESCENT N/A N/A N/A N/A d addCallback cbRequest N/A N/A N/A N/A self protocol dataReceived HTTP/1.1 200 OK
Content-Length: 0
Connection: close

 N/A d N/A test_receiveResponseHeaders N/A N/A self N/A N/A N/A 
        The headers included in a response delivered to L{HTTP11ClientProtocol}
        are included on the L{Response} instance passed to the callback
        returned by the C{request} method.
         N/A d N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None cbRequest N/A N/A response N/A N/A N/A expected N/A Headers N/A x-foo N/A bar baz N/A N/A N/A self assertEqual N/A response headers expected N/A N/A N/A N/A d addCallback cbRequest N/A N/A N/A N/A self protocol dataReceived HTTP/1.1 200 OK
X-Foo: bar
X-Foo: baz

 N/A d N/A test_receiveResponseBeforeRequestGenerationDone N/A N/A self N/A N/A N/A 
        If response bytes are delivered to L{HTTP11ClientProtocol} before the
        L{Deferred} returned by L{Request.writeTo} fires, those response bytes
        are parsed as part of the response.

        The connection is also closed, because we're in a confusing state, and
        therefore the C{quiescentCallback} isn't called.
         N/A quiescentResult N/A N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A quiescentResult append N/A N/A N/A protocol makeConnection transport N/A request N/A SlowRequest N/A d N/A N/A protocol request request N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
X-Foo: bar
Content-Length: 6

foobar cbResponse N/A N/A response N/A N/A N/A p N/A AccumulatingProtocol N/A whenFinished N/A p closedDeferred N/A Deferred N/A N/A N/A response deliverBody p N/A N/A N/A self assertEqual N/A protocol state TRANSMITTING_AFTER_RECEIVING_RESPONSE N/A N/A N/A self assertTrue N/A transport disconnecting N/A N/A N/A self assertEqual quiescentResult N/A N/A N/A N/A whenFinished addCallback N/A N/A N/A ign N/A N/A response N/A p data N/A N/A N/A N/A d addCallback cbResponse cbAllResponse N/A N/A N/A response body N/A N/A N/A N/A N/A self assertEqual N/A response version N/A HTTP 1 1 N/A N/A N/A self assertEqual N/A response code 200 N/A N/A N/A self assertEqual N/A response phrase OK N/A N/A N/A self assertEqual N/A response headers N/A Headers N/A x-foo N/A bar N/A N/A N/A self assertEqual body foobar N/A N/A N/A N/A request finished callback None N/A N/A N/A N/A d addCallback cbAllResponse N/A d N/A test_connectionLostAfterReceivingResponseBeforeRequestGenerationDone N/A N/A self N/A N/A N/A 
        If response bytes are delivered to L{HTTP11ClientProtocol} before the
        request completes, calling L{connectionLost} on the protocol will
        result in protocol being moved to C{'CONNECTION_LOST'} state.
         N/A request N/A SlowRequest N/A d N/A N/A N/A self protocol request request N/A N/A N/A N/A self protocol dataReceived HTTP/1.1 400 BAD REQUEST
Content-Length: 9

tisk tisk cbResponse N/A N/A response N/A N/A N/A p N/A AccumulatingProtocol N/A whenFinished N/A p closedDeferred N/A Deferred N/A N/A N/A response deliverBody p N/A N/A N/A whenFinished addCallback N/A N/A N/A ign N/A N/A response N/A p data N/A N/A N/A N/A d addCallback cbResponse cbAllResponse N/A N/A ignore N/A N/A N/A N/A N/A N/A request finished callback None N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ArbitraryException N/A N/A N/A self assertEqual N/A N/A self protocol _state CONNECTION_LOST N/A N/A N/A N/A d addCallback cbAllResponse N/A d N/A test_receiveResponseBody N/A N/A self N/A N/A N/A 
        The C{deliverBody} method of the response object with which the
        L{Deferred} returned by L{HTTP11ClientProtocol.request} fires can be
        used to get the body of the response.
         N/A protocol N/A AccumulatingProtocol N/A whenFinished N/A protocol closedDeferred N/A Deferred N/A requestDeferred N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None N/A N/A N/A N/A self protocol dataReceived HTTP/1.1 200 OK
Content-Length: 6

 N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A N/A N/A self assertEqual result N/A N/A N/A N/A N/A self protocol dataReceived N/A response N/A result N/A 0 N/A N/A N/A response deliverBody protocol N/A N/A N/A N/A self protocol dataReceived foo N/A N/A N/A N/A self protocol dataReceived bar cbAllResponse N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A protocol data foobar N/A N/A N/A N/A protocol closedReason trap ResponseDone N/A N/A N/A N/A whenFinished addCallback cbAllResponse N/A whenFinished N/A test_responseBodyFinishedWhenConnectionLostWhenContentLengthIsUnknown N/A N/A self N/A N/A N/A 
        If the length of the response body is unknown, the protocol passed to
        the response's C{deliverBody} method has its C{connectionLost}
        method called with a L{Failure} wrapping a L{PotentialDataLoss}
        exception.
         N/A requestDeferred N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None N/A N/A N/A N/A self protocol dataReceived HTTP/1.1 200 OK

 N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A response N/A result N/A 0 N/A protocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody protocol N/A N/A N/A N/A self protocol dataReceived foo N/A N/A N/A N/A self protocol dataReceived bar N/A N/A N/A self assertEqual N/A protocol data foobar N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ConnectionDone low-level transport disconnected N/A N/A N/A N/A protocol closedReason trap PotentialDataLoss N/A test_chunkedResponseBodyUnfinishedWhenConnectionLost N/A N/A self N/A N/A N/A 
        If the final chunk has not been received when the connection is lost
        (for any reason), the protocol passed to C{deliverBody} has its
        C{connectionLost} method called with a L{Failure} wrapping the
        exception for that reason.
         N/A requestDeferred N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None N/A N/A N/A N/A self protocol dataReceived HTTP/1.1 200 OK
Transfer-Encoding: chunked

 N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A response N/A result N/A 0 N/A protocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody protocol N/A N/A N/A N/A self protocol dataReceived 3
foo
 N/A N/A N/A N/A self protocol dataReceived 3
bar
 N/A N/A N/A self assertEqual N/A protocol data foobar N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ArbitraryException N/A N/A assertResponseFailed self N/A fail N/A protocol closedReason N/A ArbitraryException _DataLoss N/A test_parserDataReceivedException N/A N/A self N/A N/A N/A 
        If the parser L{HTTP11ClientProtocol} delivers bytes to in
        C{dataReceived} raises an exception, the exception is wrapped in a
        L{Failure} and passed to the parser's C{connectionLost} and then the
        L{HTTP11ClientProtocol}'s transport is disconnected.
         N/A requestDeferred N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None N/A N/A N/A N/A self protocol dataReceived unparseable garbage goes here
 N/A d N/A assertResponseFailed self requestDeferred N/A ParseError cbFailed N/A N/A exc N/A N/A N/A N/A N/A self assertTrue N/A N/A self transport disconnecting N/A N/A N/A self assertEqual N/A N/A N/A N/A exc reasons N/A 0 value data unparseable garbage goes here N/A N/A N/A N/A self protocol connectionLost N/A Failure N/A ConnectionDone it is done N/A N/A N/A N/A d addCallback cbFailed N/A d N/A test_proxyStopped N/A N/A self N/A N/A N/A 
        When the HTTP response parser is disconnected, the
        L{TransportProxyProducer} which was connected to it as a transport is
        stopped.
         N/A requestDeferred N/A N/A N/A self protocol request N/A Request GET / _boringHeaders None N/A transport N/A N/A N/A self protocol _parser transport N/A N/A N/A self assertIdentical N/A transport _producer N/A self transport N/A N/A N/A N/A self protocol _disconnectParser N/A Failure N/A ConnectionDone connection done N/A N/A N/A self assertIdentical N/A transport _producer None N/A N/A assertResponseFailed self requestDeferred N/A ConnectionDone N/A test_abortClosesConnection N/A N/A self N/A N/A N/A 
        L{HTTP11ClientProtocol.abort} will tell the transport to close its
        connection when it is invoked, and returns a C{Deferred} that fires
        when the connection is lost.
         N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A N/A N/A protocol makeConnection transport N/A r1 N/A N/A r2 N/A N/A N/A N/A N/A N/A protocol abort addCallback N/A r1 append N/A N/A N/A N/A N/A protocol abort addCallback N/A r2 append N/A N/A N/A self assertEqual N/A r1 r2 N/A N/A N/A N/A N/A N/A self assertTrue N/A transport disconnecting N/A N/A N/A protocol connectionLost N/A Failure N/A ConnectionDone N/A N/A N/A self assertEqual r1 N/A None N/A N/A N/A self assertEqual r2 N/A None N/A test_abortAfterConnectionLost N/A N/A self N/A N/A N/A 
        L{HTTP11ClientProtocol.abort} called after the connection is lost
        returns a C{Deferred} that fires immediately.
         N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A N/A N/A protocol makeConnection transport N/A N/A N/A protocol connectionLost N/A Failure N/A ConnectionDone N/A result N/A N/A N/A N/A N/A N/A protocol abort addCallback N/A result append N/A N/A N/A self assertEqual result N/A None N/A N/A N/A self assertEqual N/A protocol _state CONNECTION_LOST N/A test_abortBeforeResponseBody N/A N/A self N/A N/A N/A 
        The Deferred returned by L{HTTP11ClientProtocol.request} will fire
        with a L{ResponseFailed} failure containing a L{ConnectionAborted}
        exception, if the connection was aborted before all response headers
        have been received.
         N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A N/A N/A protocol makeConnection transport N/A result N/A N/A protocol request N/A Request GET / _boringHeaders None N/A N/A N/A protocol abort N/A N/A N/A self assertTrue N/A transport disconnecting N/A N/A N/A protocol connectionLost N/A Failure N/A ConnectionDone N/A N/A assertResponseFailed self result N/A ConnectionAborted N/A test_abortAfterResponseHeaders N/A N/A self N/A N/A N/A 
        When the connection is aborted after the response headers have
        been received and the L{Response} has been made available to
        application code, the response body protocol's C{connectionLost}
        method will be invoked with a L{ResponseFailed} failure containing a
        L{ConnectionAborted} exception.
         N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A N/A N/A protocol makeConnection transport N/A result N/A N/A protocol request N/A Request GET / _boringHeaders None N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-Length: 1

 N/A testResult N/A Deferred BodyDestination N/A Protocol N/A N/A 
            A body response protocol which immediately aborts the HTTP
            connection.
             connectionMade N/A N/A self N/A N/A N/A 
                Abort the HTTP connection.
                 N/A N/A N/A protocol abort N/A connectionLost N/A N/A self reason N/A N/A N/A 
                Make the reason for the losing of the connection available to
                the unit test via C{testResult}.
                 N/A N/A N/A testResult errback reason N/A N/A deliverBody N/A N/A response N/A N/A N/A 
            Connect the L{BodyDestination} response body protocol to the
            response, and then simulate connection loss after ensuring that
            the HTTP connection has been aborted.
             N/A N/A N/A response deliverBody N/A BodyDestination N/A N/A N/A self assertTrue N/A transport disconnecting N/A N/A N/A protocol connectionLost N/A Failure N/A ConnectionDone N/A checkError N/A N/A error N/A N/A N/A N/A N/A self assertIsInstance N/A error response Response N/A N/A N/A N/A result addCallback deliverBody N/A deferred N/A assertResponseFailed self testResult N/A ConnectionAborted _DataLoss N/A N/A N/A deferred addCallback checkError N/A test_quiescentCallbackCalled N/A N/A self N/A N/A N/A 
        If after a response is done the {HTTP11ClientProtocol} stays open and
        returns to QUIESCENT state, all per-request state is reset and the
        C{quiescentCallback} is called with the protocol instance.

        This is useful for implementing a persistent connection pool.

        The C{quiescentCallback} is called *before* the response-receiving
        protocol's C{connectionLost}, so that new requests triggered by end of
        first request can re-use a persistent connection.
         N/A quiescentResult N/A callback N/A N/A p N/A N/A N/A N/A N/A self assertEqual p protocol N/A N/A N/A self assertEqual N/A p state QUIESCENT N/A N/A N/A quiescentResult append p N/A N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol callback N/A N/A N/A protocol makeConnection transport N/A requestDeferred N/A N/A protocol request N/A Request GET / _boringHeaders None persistent True N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-length: 3

 N/A N/A N/A self assertEqual quiescentResult N/A N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A response N/A result N/A 0 N/A bodyProtocol N/A AccumulatingProtocol N/A N/A bodyProtocol closedDeferred N/A Deferred N/A N/A N/A N/A bodyProtocol closedDeferred addCallback N/A N/A N/A ign N/A N/A N/A quiescentResult append response done N/A N/A N/A response deliverBody bodyProtocol N/A N/A N/A protocol dataReceived abc N/A N/A N/A N/A bodyProtocol closedReason trap ResponseDone N/A N/A N/A self assertEqual quiescentResult N/A protocol response done N/A N/A N/A self assertEqual N/A protocol _parser None N/A N/A N/A self assertEqual N/A protocol _finishedRequest None N/A N/A N/A self assertEqual N/A protocol _currentRequest None N/A N/A N/A self assertEqual N/A protocol _transportProxy None N/A N/A N/A self assertEqual N/A protocol _responseDeferred None N/A test_quiescentCallbackCalledEmptyResponse N/A N/A self N/A N/A N/A 
        The quiescentCallback is called before the request C{Deferred} fires,
        in cases where the response has no body.
         N/A quiescentResult N/A callback N/A N/A p N/A N/A N/A N/A N/A self assertEqual p protocol N/A N/A N/A self assertEqual N/A p state QUIESCENT N/A N/A N/A quiescentResult append p N/A N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol callback N/A N/A N/A protocol makeConnection transport N/A requestDeferred N/A N/A protocol request N/A Request GET / _boringHeaders None persistent True N/A N/A N/A requestDeferred addCallback N/A quiescentResult append N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-length: 0

 N/A N/A N/A self assertEqual N/A len quiescentResult 2 N/A N/A N/A self assertIdentical N/A quiescentResult N/A 0 protocol N/A N/A N/A self assertIsInstance N/A quiescentResult N/A 1 Response N/A test_quiescentCallbackNotCalled N/A N/A self N/A N/A N/A 
        If after a response is done the {HTTP11ClientProtocol} returns a
        C{Connection: close} header in the response, the C{quiescentCallback}
        is not called and the connection is lost.
         N/A quiescentResult N/A N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A quiescentResult append N/A N/A N/A protocol makeConnection transport N/A requestDeferred N/A N/A protocol request N/A Request GET / _boringHeaders None persistent True N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-length: 0
Connection: close

 N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A response N/A result N/A 0 N/A bodyProtocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody bodyProtocol N/A N/A N/A N/A bodyProtocol closedReason trap ResponseDone N/A N/A N/A self assertEqual quiescentResult N/A N/A N/A N/A self assertTrue N/A transport disconnecting N/A test_quiescentCallbackNotCalledNonPersistentQuery N/A N/A self N/A N/A N/A 
        If the request was non-persistent (i.e. sent C{Connection: close}),
        the C{quiescentCallback} is not called and the connection is lost.
         N/A quiescentResult N/A N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol N/A quiescentResult append N/A N/A N/A protocol makeConnection transport N/A requestDeferred N/A N/A protocol request N/A Request GET / _boringHeaders None persistent False N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-length: 0

 N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A response N/A result N/A 0 N/A bodyProtocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody bodyProtocol N/A N/A N/A N/A bodyProtocol closedReason trap ResponseDone N/A N/A N/A self assertEqual quiescentResult N/A N/A N/A N/A self assertTrue N/A transport disconnecting N/A test_quiescentCallbackThrows N/A N/A self N/A N/A N/A 
        If C{quiescentCallback} throws an exception, the error is logged and
        protocol is disconnected.
         callback N/A N/A p N/A N/A N/A N/A ZeroDivisionError N/A N/A transport N/A StringTransport N/A protocol N/A HTTP11ClientProtocol callback N/A N/A N/A protocol makeConnection transport N/A requestDeferred N/A N/A protocol request N/A Request GET / _boringHeaders None persistent True N/A N/A N/A protocol dataReceived HTTP/1.1 200 OK
Content-length: 0

 N/A result N/A N/A N/A N/A requestDeferred addCallback N/A result append N/A response N/A result N/A 0 N/A bodyProtocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody bodyProtocol N/A N/A N/A N/A bodyProtocol closedReason trap ResponseDone N/A errors N/A N/A self flushLoggedErrors ZeroDivisionError N/A N/A N/A self assertEqual N/A len errors 1 N/A N/A N/A self assertTrue N/A transport disconnecting N/A N/A StringProducer N/A N/A N/A 
    L{StringProducer} is a dummy body producer.

    @ivar stopped: A flag which indicates whether or not C{stopProducing} has
        been called.
    @ivar consumer: After C{startProducing} is called, the value of the
        C{consumer} argument to that method.
    @ivar finished: After C{startProducing} is called, a L{Deferred} which was
        returned by that method.  L{StringProducer} will never fire this
        L{Deferred}.
     N/A N/A implements IBodyProducer N/A stopped False __init__ N/A N/A self length N/A N/A N/A N/A self length length N/A startProducing N/A N/A self consumer N/A N/A N/A N/A self consumer consumer N/A N/A self finished N/A Deferred N/A N/A self finished N/A stopProducing N/A N/A self N/A N/A N/A N/A self stopped True N/A N/A RequestTests N/A TestCase N/A N/A 
    Tests for L{Request}.
     setUp N/A N/A self N/A N/A N/A N/A self transport N/A StringTransport N/A test_sendSimplestRequest N/A N/A self N/A N/A N/A 
        L{Request.writeTo} formats the request data and writes it to the given
        transport.
         N/A N/A N/A N/A Request GET / _boringHeaders None writeTo N/A self transport N/A N/A N/A self assertEqual N/A N/A N/A self transport value GET / HTTP/1.1
Connection: close
Host: example.com

 N/A test_sendSimplestPersistentRequest N/A N/A self N/A N/A N/A 
        A pesistent request does not send 'Connection: close' header.
         N/A req N/A Request GET / _boringHeaders None persistent True N/A N/A N/A req writeTo N/A self transport N/A N/A N/A self assertEqual N/A N/A N/A self transport value GET / HTTP/1.1
Host: example.com

 N/A test_sendRequestHeaders N/A N/A self N/A N/A N/A 
        L{Request.writeTo} formats header data and writes it to the given
        transport.
         N/A headers N/A Headers N/A x-foo host N/A bar baz N/A example.com N/A N/A N/A N/A Request GET /foo headers None writeTo N/A self transport N/A lines N/A N/A N/A N/A N/A self transport value split N/A N/A N/A self assertEqual N/A lines N/A 0 GET /foo HTTP/1.1 N/A N/A N/A self assertEqual N/A lines N/A -2 N/A N/A N/A lines N/A 0 N/A lines N/A -2 N/A N/A N/A lines sort N/A N/A N/A self assertEqual lines N/A Connection: close Host: example.com X-Foo: bar X-Foo: baz N/A test_sendChunkedRequestBody N/A N/A self N/A N/A N/A 
        L{Request.writeTo} uses chunked encoding to write data from the request
        body producer to the given transport.  It registers the request body
        producer with the transport.
         N/A producer N/A StringProducer UNKNOWN_LENGTH N/A request N/A Request POST /bar _boringHeaders producer N/A N/A N/A request writeTo N/A self transport N/A N/A N/A self assertNotIdentical N/A producer consumer None N/A N/A N/A self assertIdentical N/A N/A self transport producer producer N/A N/A N/A self assertTrue N/A N/A self transport streaming N/A N/A N/A self assertEqual N/A N/A N/A self transport value POST /bar HTTP/1.1
Connection: close
Transfer-Encoding: chunked
Host: example.com

 N/A N/A N/A N/A self transport clear N/A N/A N/A N/A producer consumer write N/A x 3 N/A N/A N/A N/A producer consumer write N/A y 15 N/A N/A N/A N/A producer finished callback None N/A N/A N/A self assertIdentical N/A N/A self transport producer None N/A N/A N/A self assertEqual N/A N/A N/A self transport value 3
xxx
f
yyyyyyyyyyyyyyy
0

 N/A test_sendChunkedRequestBodyWithError N/A N/A self N/A N/A N/A 
        If L{Request} is created with a C{bodyProducer} without a known length
        and the L{Deferred} returned from its C{startProducing} method fires
        with a L{Failure}, the L{Deferred} returned by L{Request.writeTo} fires
        with that L{Failure} and the body producer is unregistered from the
        transport.  The final zero-length chunk is not written to the
        transport.
         N/A producer N/A StringProducer UNKNOWN_LENGTH N/A request N/A Request POST /bar _boringHeaders producer N/A writeDeferred N/A N/A request writeTo N/A self transport N/A N/A N/A N/A self transport clear N/A N/A N/A N/A producer finished errback N/A ArbitraryException cbFailed N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A N/A N/A self assertIdentical N/A N/A self transport producer None N/A N/A d N/A N/A self assertFailure writeDeferred ArbitraryException N/A N/A N/A d addCallback cbFailed N/A d N/A test_sendRequestBodyWithLength N/A N/A self N/A N/A N/A 
        If L{Request} is created with a C{bodyProducer} with a known length,
        that length is sent as the value for the I{Content-Length} header and
        chunked encoding is not used.
         N/A producer N/A StringProducer 3 N/A request N/A Request POST /bar _boringHeaders producer N/A N/A N/A request writeTo N/A self transport N/A N/A N/A self assertNotIdentical N/A producer consumer None N/A N/A N/A self assertIdentical N/A N/A self transport producer producer N/A N/A N/A self assertTrue N/A N/A self transport streaming N/A N/A N/A self assertEqual N/A N/A N/A self transport value POST /bar HTTP/1.1
Connection: close
Content-Length: 3
Host: example.com

 N/A N/A N/A N/A self transport clear N/A N/A N/A N/A producer consumer write abc N/A N/A N/A N/A producer finished callback None N/A N/A N/A self assertIdentical N/A N/A self transport producer None N/A N/A N/A self assertEqual N/A N/A N/A self transport value abc N/A test_sendRequestBodyWithTooFewBytes N/A N/A self N/A N/A N/A 
        If L{Request} is created with a C{bodyProducer} with a known length and
        the producer does not produce that many bytes, the L{Deferred} returned
        by L{Request.writeTo} fires with a L{Failure} wrapping a
        L{WrongBodyLength} exception.
         N/A producer N/A StringProducer 3 N/A request N/A Request POST /bar _boringHeaders producer N/A writeDeferred N/A N/A request writeTo N/A self transport N/A N/A N/A N/A producer consumer write ab N/A N/A N/A N/A producer finished callback None N/A N/A N/A self assertIdentical N/A N/A self transport producer None N/A N/A N/A self assertFailure writeDeferred WrongBodyLength N/A _sendRequestBodyWithTooManyBytesTest N/A N/A self finisher N/A N/A N/A 
        Verify that when too many bytes have been written by a body producer
        and then the body producer's C{startProducing} L{Deferred} fires that
        the producer is unregistered from the transport and that the
        L{Deferred} returned from L{Request.writeTo} is fired with a L{Failure}
        wrapping a L{WrongBodyLength}.

        @param finisher: A callable which will be invoked with the body
            producer after too many bytes have been written to the transport.
            It should fire the startProducing Deferred somehow.
         N/A producer N/A StringProducer 3 N/A request N/A Request POST /bar _boringHeaders producer N/A writeDeferred N/A N/A request writeTo N/A self transport N/A N/A N/A N/A producer consumer write ab N/A N/A N/A self assertFalse N/A producer stopped N/A N/A N/A N/A producer consumer write cd N/A N/A N/A self assertTrue N/A producer stopped N/A N/A N/A self assertIdentical N/A N/A self transport producer None cbFailed N/A N/A exc N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self transport value POST /bar HTTP/1.1
Connection: close
Content-Length: 3
Host: example.com

ab N/A N/A N/A N/A self transport clear N/A N/A N/A self assertRaises ExcessWrite N/A N/A producer consumer write ef N/A N/A finisher producer N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A N/A d N/A N/A self assertFailure writeDeferred WrongBodyLength N/A N/A N/A d addCallback cbFailed N/A d N/A test_sendRequestBodyWithTooManyBytes N/A N/A self N/A N/A N/A 
        If L{Request} is created with a C{bodyProducer} with a known length and
        the producer tries to produce more than than many bytes, the
        L{Deferred} returned by L{Request.writeTo} fires with a L{Failure}
        wrapping a L{WrongBodyLength} exception.
         finisher N/A N/A producer N/A N/A N/A N/A N/A N/A producer finished callback None N/A N/A N/A N/A self _sendRequestBodyWithTooManyBytesTest finisher N/A test_sendRequestBodyErrorWithTooManyBytes N/A N/A self N/A N/A N/A 
        If L{Request} is created with a C{bodyProducer} with a known length and
        the producer tries to produce more than than many bytes, the
        L{Deferred} returned by L{Request.writeTo} fires with a L{Failure}
        wrapping a L{WrongBodyLength} exception.
         finisher N/A N/A producer N/A N/A N/A N/A N/A N/A producer finished errback N/A ArbitraryException N/A errors N/A N/A self flushLoggedErrors ArbitraryException N/A N/A N/A self assertEqual N/A len errors 1 N/A N/A N/A N/A self _sendRequestBodyWithTooManyBytesTest finisher N/A test_sendRequestBodyErrorWithConsumerError N/A N/A self N/A N/A N/A 
        Though there should be no way for the internal C{finishedConsuming}
        L{Deferred} in L{Request._writeToContentLength} to fire a L{Failure}
        after the C{finishedProducing} L{Deferred} has fired, in case this does
        happen, the error should be logged with a message about how there's
        probably a bug in L{Request}.

        This is a whitebox test.
         N/A producer N/A StringProducer 3 N/A request N/A Request POST /bar _boringHeaders producer N/A N/A N/A request writeTo N/A self transport N/A finishedConsuming N/A N/A producer consumer _finished N/A N/A N/A N/A producer consumer write abc N/A N/A N/A N/A producer finished callback None N/A N/A N/A finishedConsuming errback N/A ArbitraryException N/A N/A N/A self assertEqual N/A len N/A N/A self flushLoggedErrors ArbitraryException 1 N/A _sendRequestBodyFinishedEarlyThenTooManyBytes N/A N/A self finisher N/A N/A N/A 
        Verify that if the body producer fires its Deferred and then keeps
        writing to the consumer that the extra writes are ignored and the
        L{Deferred} returned by L{Request.writeTo} fires with a L{Failure}
        wrapping the most appropriate exception type.
         N/A producer N/A StringProducer 3 N/A request N/A Request POST /bar _boringHeaders producer N/A writeDeferred N/A N/A request writeTo N/A self transport N/A N/A N/A N/A producer consumer write ab N/A N/A finisher producer N/A N/A N/A self assertIdentical N/A N/A self transport producer None N/A N/A N/A N/A self transport clear N/A N/A N/A self assertRaises ExcessWrite N/A N/A producer consumer write cd N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A writeDeferred N/A test_sendRequestBodyFinishedEarlyThenTooManyBytes N/A N/A self N/A N/A N/A 
        If the request body producer indicates it is done by firing the
        L{Deferred} returned from its C{startProducing} method but then goes on
        to write too many bytes, the L{Deferred} returned by {Request.writeTo}
        fires with a L{Failure} wrapping L{WrongBodyLength}.
         finisher N/A N/A producer N/A N/A N/A N/A N/A N/A producer finished callback None N/A N/A N/A N/A self assertFailure N/A N/A self _sendRequestBodyFinishedEarlyThenTooManyBytes finisher WrongBodyLength N/A test_sendRequestBodyErroredEarlyThenTooManyBytes N/A N/A self N/A N/A N/A 
        If the request body producer indicates an error by firing the
        L{Deferred} returned from its C{startProducing} method but then goes on
        to write too many bytes, the L{Deferred} returned by {Request.writeTo}
        fires with that L{Failure} and L{WrongBodyLength} is logged.
         finisher N/A N/A producer N/A N/A N/A N/A N/A N/A producer finished errback N/A ArbitraryException N/A N/A N/A N/A self assertFailure N/A N/A self _sendRequestBodyFinishedEarlyThenTooManyBytes finisher ArbitraryException N/A test_sendChunkedRequestBodyFinishedThenWriteMore N/A N/A self _with N/A None N/A N/A 
        If the request body producer with an unknown length tries to write
        after firing the L{Deferred} returned by its C{startProducing} method,
        the C{write} call raises an exception and does not write anything to
        the underlying transport.
         N/A producer N/A StringProducer UNKNOWN_LENGTH N/A request N/A Request POST /bar _boringHeaders producer N/A writeDeferred N/A N/A request writeTo N/A self transport N/A N/A N/A N/A producer finished callback _with N/A N/A N/A N/A self transport clear N/A N/A N/A self assertRaises ExcessWrite N/A N/A producer consumer write foo N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A writeDeferred N/A test_sendChunkedRequestBodyFinishedWithErrorThenWriteMore N/A N/A self N/A N/A N/A 
        If the request body producer with an unknown length tries to write
        after firing the L{Deferred} returned by its C{startProducing} method
        with a L{Failure}, the C{write} call raises an exception and does not
        write anything to the underlying transport.
         N/A d N/A N/A self test_sendChunkedRequestBodyFinishedThenWriteMore N/A Failure N/A ArbitraryException N/A N/A N/A self assertFailure d ArbitraryException N/A test_sendRequestBodyWithError N/A N/A self N/A N/A N/A 
        If the L{Deferred} returned from the C{startProducing} method of the
        L{IBodyProducer} passed to L{Request} fires with a L{Failure}, the
        L{Deferred} returned from L{Request.writeTo} fails with that
        L{Failure}.
         N/A producer N/A StringProducer 5 N/A request N/A Request POST /bar _boringHeaders producer N/A writeDeferred N/A N/A request writeTo N/A self transport N/A N/A N/A self assertIdentical N/A N/A self transport producer producer N/A N/A N/A self assertTrue N/A N/A self transport streaming N/A N/A N/A N/A producer consumer write ab N/A N/A N/A self assertEqual N/A N/A N/A self transport value POST /bar HTTP/1.1
Connection: close
Content-Length: 5
Host: example.com

ab N/A N/A N/A self assertFalse N/A N/A self transport disconnecting N/A N/A N/A N/A producer finished errback N/A Failure N/A ArbitraryException N/A N/A N/A self assertFalse N/A N/A self transport disconnecting N/A N/A N/A self assertIdentical N/A N/A self transport producer None N/A N/A N/A self assertFailure writeDeferred ArbitraryException N/A test_hostHeaderRequired N/A N/A self N/A N/A N/A 
        L{Request.writeTo} raises L{BadHeaders} if there is not exactly one
        I{Host} header and writes nothing to the given transport.
         N/A request N/A Request GET / N/A Headers N/A None N/A N/A N/A self assertRaises BadHeaders N/A request writeTo N/A self transport N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A request N/A Request GET / N/A Headers N/A Host N/A example.com example.org None N/A N/A N/A self assertRaises BadHeaders N/A request writeTo N/A self transport N/A N/A N/A self assertEqual N/A N/A N/A self transport value N/A test_stopWriting N/A N/A self N/A N/A N/A 
        L{Request.stopWriting} calls its body producer's C{stopProducing}
        method.
         N/A producer N/A StringProducer 3 N/A request N/A Request GET / _boringHeaders producer N/A N/A N/A request writeTo N/A self transport N/A N/A N/A self assertFalse N/A producer stopped N/A N/A N/A request stopWriting N/A N/A N/A self assertTrue N/A producer stopped N/A test_brokenStopProducing N/A N/A self N/A N/A N/A 
        If the body producer's C{stopProducing} method raises an exception,
        L{Request.stopWriting} logs it and does not re-raise it.
         N/A producer N/A StringProducer 3 brokenStopProducing N/A N/A N/A N/A N/A N/A ArbitraryException stopProducing is busted N/A N/A N/A producer stopProducing brokenStopProducing N/A request N/A Request GET / _boringHeaders producer N/A N/A N/A request writeTo N/A self transport N/A N/A N/A request stopWriting N/A N/A N/A self assertEqual N/A len N/A N/A self flushLoggedErrors ArbitraryException 1 N/A N/A LengthEnforcingConsumerTests N/A TestCase N/A N/A 
    Tests for L{LengthEnforcingConsumer}.
     setUp N/A N/A self N/A N/A N/A N/A self result N/A Deferred N/A N/A self producer N/A StringProducer 10 N/A N/A self transport N/A StringTransport N/A N/A self enforcer N/A LengthEnforcingConsumer N/A self producer N/A self transport N/A self result N/A test_write N/A N/A self N/A N/A N/A 
        L{LengthEnforcingConsumer.write} calls the wrapped consumer's C{write}
        method with the bytes it is passed as long as there are fewer of them
        than the C{length} attribute indicates remain to be received.
         N/A N/A N/A N/A self enforcer write abc N/A N/A N/A self assertEqual N/A N/A N/A self transport value abc N/A N/A N/A N/A self transport clear N/A N/A N/A N/A self enforcer write def N/A N/A N/A self assertEqual N/A N/A N/A self transport value def N/A test_finishedEarly N/A N/A self N/A N/A N/A 
        L{LengthEnforcingConsumer._noMoreWritesExpected} raises
        L{WrongBodyLength} if it is called before the indicated number of bytes
        have been written.
         N/A N/A N/A N/A self enforcer write N/A x 9 N/A N/A N/A self assertRaises WrongBodyLength N/A N/A self enforcer _noMoreWritesExpected N/A test_writeTooMany N/A N/A self _unregisterAfter N/A False N/A N/A 
        If it is called with a total number of bytes exceeding the indicated
        limit passed to L{LengthEnforcingConsumer.__init__},
        L{LengthEnforcingConsumer.write} fires the L{Deferred} with a
        L{Failure} wrapping a L{WrongBodyLength} and also calls the
        C{stopProducing} method of the producer.
         N/A N/A N/A N/A self enforcer write N/A x 10 N/A N/A N/A self assertFalse N/A N/A self producer stopped N/A N/A N/A N/A self enforcer write x N/A N/A N/A self assertTrue N/A N/A self producer stopped N/A _unregisterAfter N/A N/A N/A N/A N/A self enforcer _noMoreWritesExpected N/A N/A N/A self assertFailure N/A self result WrongBodyLength N/A test_writeAfterNoMoreExpected N/A N/A self N/A N/A N/A 
        If L{LengthEnforcingConsumer.write} is called after
        L{LengthEnforcingConsumer._noMoreWritesExpected}, it calls the
        producer's C{stopProducing} method and raises L{ExcessWrite}.
         N/A N/A N/A N/A self enforcer write N/A x 10 N/A N/A N/A N/A self enforcer _noMoreWritesExpected N/A N/A N/A self assertFalse N/A N/A self producer stopped N/A N/A N/A self assertRaises ExcessWrite N/A N/A self enforcer write x N/A N/A N/A self assertTrue N/A N/A self producer stopped N/A test_finishedLate N/A N/A self N/A N/A N/A 
        L{LengthEnforcingConsumer._noMoreWritesExpected} does nothing (in
        particular, it does not raise any exception) if called after too many
        bytes have been passed to C{write}.
         N/A N/A N/A self test_writeTooMany True N/A test_finished N/A N/A self N/A N/A N/A 
        If L{LengthEnforcingConsumer._noMoreWritesExpected} is called after
        the correct number of bytes have been written it returns C{None}.
         N/A N/A N/A N/A self enforcer write N/A x 10 N/A N/A N/A self assertIdentical N/A N/A N/A self enforcer _noMoreWritesExpected None N/A test_stopProducingRaises N/A N/A self N/A N/A N/A 
        If L{LengthEnforcingConsumer.write} calls the producer's
        C{stopProducing} because too many bytes were written and the
        C{stopProducing} method raises an exception, the exception is logged
        and the L{LengthEnforcingConsumer} still errbacks the finished
        L{Deferred}.
         brokenStopProducing N/A N/A N/A N/A N/A N/A N/A StringProducer stopProducing N/A self producer N/A N/A ArbitraryException stopProducing is busted N/A N/A N/A N/A self producer stopProducing brokenStopProducing cbFinished N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A len N/A N/A self flushLoggedErrors ArbitraryException 1 N/A N/A d N/A N/A self test_writeTooMany N/A N/A N/A d addCallback cbFinished N/A d N/A N/A RequestBodyConsumerTests N/A TestCase N/A N/A 
    Tests for L{ChunkedEncoder} which sits between an L{ITransport} and a
    request/response body producer and chunked encodes everything written to
    it.
     test_interface N/A N/A self N/A N/A N/A 
        L{ChunkedEncoder} instances provide L{IConsumer}.
         N/A N/A N/A self assertTrue N/A verifyObject IConsumer N/A ChunkedEncoder N/A StringTransport N/A test_write N/A N/A self N/A N/A N/A 
        L{ChunkedEncoder.write} writes to the transport the chunked encoded
        form of the bytes passed to it.
         N/A transport N/A StringTransport N/A encoder N/A ChunkedEncoder transport N/A N/A N/A encoder write foo N/A N/A N/A self assertEqual N/A N/A transport value 3
foo
 N/A N/A N/A transport clear N/A N/A N/A encoder write N/A x 16 N/A N/A N/A self assertEqual N/A N/A transport value N/A N/A 10
 N/A x 16 N/A test_producerRegistration N/A N/A self N/A N/A N/A 
        L{ChunkedEncoder.registerProducer} registers the given streaming
        producer with its transport and L{ChunkedEncoder.unregisterProducer}
        writes a zero-length chunk to its transport and unregisters the
        transport's producer.
         N/A transport N/A StringTransport N/A producer N/A object N/A encoder N/A ChunkedEncoder transport N/A N/A N/A encoder registerProducer producer True N/A N/A N/A self assertIdentical N/A transport producer producer N/A N/A N/A self assertTrue N/A transport streaming N/A N/A N/A encoder unregisterProducer N/A N/A N/A self assertIdentical N/A transport producer None N/A N/A N/A self assertEqual N/A N/A transport value 0

 N/A N/A TransportProxyProducerTests N/A TestCase N/A N/A 
    Tests for L{TransportProxyProducer} which proxies the L{IPushProducer}
    interface of a transport.
     test_interface N/A N/A self N/A N/A N/A 
        L{TransportProxyProducer} instances provide L{IPushProducer}.
         N/A N/A N/A self assertTrue N/A verifyObject IPushProducer N/A TransportProxyProducer None N/A test_stopProxyingUnreferencesProducer N/A N/A self N/A N/A N/A 
        L{TransportProxyProducer._stopProxying} drops the reference to the
        wrapped L{IPushProducer} provider.
         N/A transport N/A StringTransport N/A proxy N/A TransportProxyProducer transport N/A N/A N/A self assertIdentical N/A proxy _producer transport N/A N/A N/A proxy _stopProxying N/A N/A N/A self assertIdentical N/A proxy _producer None N/A test_resumeProducing N/A N/A self N/A N/A N/A 
        L{TransportProxyProducer.resumeProducing} calls the wrapped
        transport's C{resumeProducing} method unless told to stop proxying.
         N/A transport N/A StringTransport N/A N/A N/A transport pauseProducing N/A proxy N/A TransportProxyProducer transport N/A N/A N/A self assertEqual N/A transport producerState paused N/A N/A N/A proxy resumeProducing N/A N/A N/A self assertEqual N/A transport producerState producing N/A N/A N/A transport pauseProducing N/A N/A N/A proxy _stopProxying N/A N/A N/A proxy resumeProducing N/A N/A N/A self assertEqual N/A transport producerState paused N/A test_pauseProducing N/A N/A self N/A N/A N/A 
        L{TransportProxyProducer.pauseProducing} calls the wrapped transport's
        C{pauseProducing} method unless told to stop proxying.
         N/A transport N/A StringTransport N/A proxy N/A TransportProxyProducer transport N/A N/A N/A self assertEqual N/A transport producerState producing N/A N/A N/A proxy pauseProducing N/A N/A N/A self assertEqual N/A transport producerState paused N/A N/A N/A transport resumeProducing N/A N/A N/A proxy _stopProxying N/A N/A N/A proxy pauseProducing N/A N/A N/A self assertEqual N/A transport producerState producing N/A test_stopProducing N/A N/A self N/A N/A N/A 
        L{TransportProxyProducer.stopProducing} calls the wrapped transport's
        C{stopProducing} method unless told to stop proxying.
         N/A transport N/A StringTransport N/A proxy N/A TransportProxyProducer transport N/A N/A N/A self assertEqual N/A transport producerState producing N/A N/A N/A proxy stopProducing N/A N/A N/A self assertEqual N/A transport producerState stopped N/A transport N/A StringTransport N/A proxy N/A TransportProxyProducer transport N/A N/A N/A proxy _stopProxying N/A N/A N/A proxy stopProducing N/A N/A N/A self assertEqual N/A transport producerState producing N/A N/A ResponseTests N/A TestCase N/A N/A 
    Tests for L{Response}.
     test_verifyInterface N/A N/A self N/A N/A N/A 
        L{Response} instances provide L{IResponse}.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A self assertTrue N/A verifyObject IResponse response N/A test_makeConnection N/A N/A self N/A N/A N/A 
        The L{IProtocol} provider passed to L{Response.deliverBody} has its
        C{makeConnection} method called with an L{IPushProducer} provider
        hooked up to the response as an argument.
         N/A producers N/A N/A transport N/A StringTransport SomeProtocol N/A Protocol N/A makeConnection N/A N/A self producer N/A N/A N/A N/A N/A producers append producer N/A N/A N/A consumer N/A SomeProtocol N/A response N/A justTransportResponse transport N/A N/A N/A response deliverBody consumer N/A N/A theProducer producers N/A N/A N/A theProducer pauseProducing N/A N/A N/A self assertEqual N/A transport producerState paused N/A N/A N/A theProducer resumeProducing N/A N/A N/A self assertEqual N/A transport producerState producing N/A test_dataReceived N/A N/A self N/A N/A N/A 
        The L{IProtocol} provider passed to L{Response.deliverBody} has its
        C{dataReceived} method called with bytes received as part of the
        response body.
         N/A bytes N/A ListConsumer N/A Protocol N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A bytes append data N/A N/A N/A consumer N/A ListConsumer N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response deliverBody consumer N/A N/A N/A response _bodyDataReceived foo N/A N/A N/A self assertEqual bytes N/A foo N/A test_connectionLost N/A N/A self N/A N/A N/A 
        The L{IProtocol} provider passed to L{Response.deliverBody} has its
        C{connectionLost} method called with a L{Failure} wrapping
        L{ResponseDone} when the response's C{_bodyDataFinished} method is
        called.
         N/A lost N/A ListConsumer N/A Protocol N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A lost append reason N/A N/A N/A consumer N/A ListConsumer N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response deliverBody consumer N/A N/A N/A response _bodyDataFinished N/A N/A N/A N/A lost N/A 0 trap ResponseDone N/A N/A N/A self assertEqual N/A len lost 1 N/A N/A N/A self assertIdentical N/A response _bodyProtocol None N/A test_bufferEarlyData N/A N/A self N/A N/A N/A 
        If data is delivered to the L{Response} before a protocol is registered
        with C{deliverBody}, that data is buffered until the protocol is
        registered and then is delivered.
         N/A bytes N/A ListConsumer N/A Protocol N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A bytes append data N/A N/A N/A protocol N/A ListConsumer N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response _bodyDataReceived foo N/A N/A N/A response _bodyDataReceived bar N/A N/A N/A response deliverBody protocol N/A N/A N/A response _bodyDataReceived baz N/A N/A N/A self assertEqual bytes N/A foo bar baz N/A N/A N/A self assertIdentical N/A response _bodyBuffer None N/A test_multipleStartProducingFails N/A N/A self N/A N/A N/A 
        L{Response.deliverBody} raises L{RuntimeError} if called more than
        once.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response deliverBody N/A Protocol N/A N/A N/A self assertRaises RuntimeError N/A response deliverBody N/A Protocol N/A test_startProducingAfterFinishedFails N/A N/A self N/A N/A N/A 
        L{Response.deliverBody} raises L{RuntimeError} if called after
        L{Response._bodyDataFinished}.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response deliverBody N/A Protocol N/A N/A N/A response _bodyDataFinished N/A N/A N/A self assertRaises RuntimeError N/A response deliverBody N/A Protocol N/A test_bodyDataReceivedAfterFinishedFails N/A N/A self N/A N/A N/A 
        L{Response._bodyDataReceived} raises L{RuntimeError} if called after
        L{Response._bodyDataFinished} but before L{Response.deliverBody}.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response _bodyDataFinished N/A N/A N/A self assertRaises RuntimeError N/A response _bodyDataReceived foo N/A test_bodyDataReceivedAfterDeliveryFails N/A N/A self N/A N/A N/A 
        L{Response._bodyDataReceived} raises L{RuntimeError} if called after
        L{Response._bodyDataFinished} and after L{Response.deliverBody}.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response _bodyDataFinished N/A N/A N/A response deliverBody N/A Protocol N/A N/A N/A self assertRaises RuntimeError N/A response _bodyDataReceived foo N/A test_bodyDataFinishedAfterFinishedFails N/A N/A self N/A N/A N/A 
        L{Response._bodyDataFinished} raises L{RuntimeError} if called more
        than once.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response _bodyDataFinished N/A N/A N/A self assertRaises RuntimeError N/A response _bodyDataFinished N/A test_bodyDataFinishedAfterDeliveryFails N/A N/A self N/A N/A N/A 
        L{Response._bodyDataFinished} raises L{RuntimeError} if called after
        the body has been delivered.
         N/A response N/A justTransportResponse N/A StringTransport N/A N/A N/A response _bodyDataFinished N/A N/A N/A response deliverBody N/A Protocol N/A N/A N/A self assertRaises RuntimeError N/A response _bodyDataFinished N/A test_transportResumed N/A N/A self N/A N/A N/A 
        L{Response.deliverBody} resumes the HTTP connection's transport
        before passing it to the transport's C{makeConnection} method.
         N/A transportState N/A ListConsumer N/A Protocol N/A makeConnection N/A N/A self transport N/A N/A N/A N/A N/A transportState append N/A transport producerState N/A N/A N/A transport N/A StringTransport N/A N/A N/A transport pauseProducing N/A protocol N/A ListConsumer N/A response N/A justTransportResponse transport N/A N/A N/A self assertEqual N/A transport producerState paused N/A N/A N/A response deliverBody protocol N/A N/A N/A self assertEqual transportState N/A producing N/A test_bodyDataFinishedBeforeStartProducing N/A N/A self N/A N/A N/A 
        If the entire body is delivered to the L{Response} before the
        response's C{deliverBody} method is called, the protocol passed to
        C{deliverBody} is immediately given the body data and then
        disconnected.
         N/A transport N/A StringTransport N/A response N/A justTransportResponse transport N/A N/A N/A response _bodyDataReceived foo N/A N/A N/A response _bodyDataReceived bar N/A N/A N/A response _bodyDataFinished N/A protocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody protocol N/A N/A N/A self assertEqual N/A protocol data foobar N/A N/A N/A N/A protocol closedReason trap ResponseDone N/A test_finishedWithErrorWhenConnected N/A N/A self N/A N/A N/A 
        The L{Failure} passed to L{Response._bodyDataFinished} when the response
        is in the I{connected} state is passed to the C{connectionLost} method
        of the L{IProtocol} provider passed to the L{Response}'s
        C{deliverBody} method.
         N/A transport N/A StringTransport N/A response N/A justTransportResponse transport N/A protocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody protocol N/A N/A N/A self assertEqual N/A response _state CONNECTED N/A N/A N/A response _bodyDataFinished N/A Failure N/A ArbitraryException N/A N/A N/A N/A protocol closedReason trap ArbitraryException N/A test_finishedWithErrorWhenInitial N/A N/A self N/A N/A N/A 
        The L{Failure} passed to L{Response._bodyDataFinished} when the response
        is in the I{initial} state is passed to the C{connectionLost} method of
        the L{IProtocol} provider passed to the L{Response}'s C{deliverBody}
        method.
         N/A transport N/A StringTransport N/A response N/A justTransportResponse transport N/A N/A N/A self assertEqual N/A response _state INITIAL N/A N/A N/A response _bodyDataFinished N/A Failure N/A ArbitraryException N/A protocol N/A AccumulatingProtocol N/A N/A N/A response deliverBody protocol N/A N/A N/A N/A protocol closedReason trap ArbitraryException N/A N/A