Module Expr Str Import alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias Assign NameStore NameLoad If BoolOpAnd NameLoad NameLoad body TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Delete NameDel orelse Assign NameStore NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str If CompareIs Call NameLoad NameLoad Str NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num FunctionDef arguments args defaults body Return AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse FunctionDef arguments args defaults body TryExcept body Delete SubscriptDel AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpSub AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult BinOpMult Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpSub AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult BinOpMult Num Num Num Num Num BinOpMult BinOpMult BinOpMult Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpSub AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult BinOpMult Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpSub AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult BinOpMult Num Num Num Num Num BinOpMult BinOpMult BinOpMult Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body Pass decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num Str Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num Num decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMult Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return TupleLoad SubscriptLoad NameLoad Index Num NameLoad Lambda arguments args defaults NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad BinOpAdd AttributeLoad NameLoad attr NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str If BoolOpAnd AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body Return Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad Str Str Str body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad BinOpMod NameLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return 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 AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults BinOpAdd SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str 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 NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Str Return Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr 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 NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr 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 NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Return Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Return Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Return Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Slice Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num ListLoad Str Str Str Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad 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 Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad Str attr Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore TupleLoad Str Str Str Str Str Str Str BinOpMod Str TupleLoad NameLoad Str NameLoad Str Assign NameStore Call NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num For NameStore ListLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse ImportFrom alias If UnaryOpNot Call NameLoad Str body Assign AttributeStore NameLoad attr Str
N/A N/A 
Tests for L{twisted.conch.scripts.cftp}.
 N/A time sys os operator getpass struct StringIO StringIO twisted.conch.test.test_ssh Crypto pyasn1 N/A _reason None N/A N/A Crypto pyasn1 N/A N/A N/A twisted.conch unix twisted.conch.scripts cftp twisted.conch.test.test_filetransfer FileTransferForTestAvatar N/A N/A N/A ImportError N/A e N/A N/A N/A N/A N/A sys modules pop twisted.conch.unix None N/A unix None N/A _reason N/A str e N/A e N/A N/A unix None twisted.python.fakepwd UserDatabase twisted.trial.unittest TestCase twisted.cred portal twisted.internet reactor protocol interfaces defer error twisted.internet.utils getProcessOutputAndValue twisted.python log twisted.conch ls twisted.test.proto_helpers StringTransport twisted.internet.task Clock twisted.conch.test test_ssh test_conch twisted.conch.test.test_filetransfer SFTPTestBase twisted.conch.test.test_filetransfer FileTransferTestAvatar ListingTests N/A TestCase N/A N/A 
    Tests for L{lsLine}, the function which generates an entry for a file or
    directory in an SFTP I{ls} command's output.
     N/A N/A N/A getattr time tzset None None N/A N/A skip Cannot test timestamp formatting code without time.tzset setUp N/A N/A self N/A N/A N/A 
        Patch the L{ls} module's time function so the results of L{lsLine} are
        deterministic.
         N/A N/A self now 123456789 fakeTime N/A N/A N/A N/A N/A N/A self now N/A N/A N/A N/A self patch ls time fakeTime N/A N/A TZ N/A os environ N/A N/A N/A N/A self addCleanup N/A operator setitem N/A os environ TZ N/A N/A os environ N/A TZ N/A N/A N/A self addCleanup N/A time tzset N/A cleanup N/A N/A N/A N/A N/A N/A N/A N/A N/A os environ N/A TZ N/A N/A N/A KeyError N/A N/A N/A N/A N/A time tzset N/A N/A N/A N/A self addCleanup cleanup N/A _lsInTimezone N/A N/A self timezone stat N/A N/A N/A 
        Call L{ls.lsLine} after setting the timezone to C{timezone} and return
        the result.
         N/A N/A N/A os environ N/A TZ timezone N/A N/A N/A time tzset N/A N/A N/A ls lsLine foo stat N/A test_oldFile N/A N/A self N/A N/A N/A 
        A file with an mtime six months (approximately) or more in the past has
        a listing including a low-resolution timestamp.
         N/A then N/A N/A self now N/A N/A N/A N/A 60 60 24 31 7 N/A stat N/A N/A os stat_result N/A 0 0 0 0 0 0 0 0 then 0 N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone America/New_York stat !---------    0 0        0               0 Apr 26  1973 foo N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone Pacific/Auckland stat !---------    0 0        0               0 Apr 27  1973 foo N/A test_oldSingleDigitDayOfMonth N/A N/A self N/A N/A N/A 
        A file with a high-resolution timestamp which falls on a day of the
        month which can be represented by one decimal digit is formatted with
        one padding 0 to preserve the columns which come after it.
         N/A then N/A N/A N/A self now N/A N/A N/A N/A 60 60 24 31 7 N/A N/A N/A 60 60 24 5 N/A stat N/A N/A os stat_result N/A 0 0 0 0 0 0 0 0 then 0 N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone America/New_York stat !---------    0 0        0               0 May 01  1973 foo N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone Pacific/Auckland stat !---------    0 0        0               0 May 02  1973 foo N/A test_newFile N/A N/A self N/A N/A N/A 
        A file with an mtime fewer than six months (approximately) in the past
        has a listing including a high-resolution timestamp excluding the year.
         N/A then N/A N/A self now N/A N/A N/A N/A 60 60 24 31 3 N/A stat N/A N/A os stat_result N/A 0 0 0 0 0 0 0 0 then 0 N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone America/New_York stat !---------    0 0        0               0 Aug 28 17:33 foo N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone Pacific/Auckland stat !---------    0 0        0               0 Aug 29 09:33 foo N/A test_newSingleDigitDayOfMonth N/A N/A self N/A N/A N/A 
        A file with a high-resolution timestamp which falls on a day of the
        month which can be represented by one decimal digit is formatted with
        one padding 0 to preserve the columns which come after it.
         N/A then N/A N/A N/A self now N/A N/A N/A N/A 60 60 24 31 3 N/A N/A N/A 60 60 24 4 N/A stat N/A N/A os stat_result N/A 0 0 0 0 0 0 0 0 then 0 N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone America/New_York stat !---------    0 0        0               0 Sep 01 17:33 foo N/A N/A N/A self assertEqual N/A N/A self _lsInTimezone Pacific/Auckland stat !---------    0 0        0               0 Sep 02 09:33 foo N/A N/A StdioClientTests N/A TestCase N/A N/A 
    Tests for L{cftp.StdioClient}.
     setUp N/A N/A self N/A N/A N/A 
        Create a L{cftp.StdioClient} hooked up to dummy transport and a fake
        user database.
         Connection N/A N/A N/A N/A N/A conn N/A Connection N/A N/A conn transport N/A StringTransport N/A N/A N/A conn transport localClosed False N/A N/A self client N/A N/A cftp StdioClient conn N/A N/A self database N/A N/A self client _pwd N/A UserDatabase N/A N/A N/A self client transport N/A StringTransport N/A test_exec N/A N/A self N/A N/A N/A 
        The I{exec} command runs its arguments locally in a child process
        using the user's shell.
         N/A N/A N/A N/A self database addUser N/A N/A getpass getuser secret N/A N/A os getuid 1234 foo bar N/A sys executable N/A d N/A N/A N/A self client _dispatchCommand exec print 1 + 2 N/A N/A N/A d addCallback N/A self assertEquals 3
 N/A d N/A test_execWithoutShell N/A N/A self N/A N/A N/A 
        If the local user has no shell, the I{exec} command runs its arguments
        using I{/bin/sh}.
         N/A N/A N/A N/A self database addUser N/A N/A getpass getuser secret N/A N/A os getuid 1234 foo bar N/A d N/A N/A N/A self client _dispatchCommand exec echo hello N/A N/A N/A d addCallback N/A self assertEquals hello
 N/A d N/A test_bang N/A N/A self N/A N/A N/A 
        The I{exec} command is run for lines which start with C{"!"}.
         N/A N/A N/A N/A self database addUser N/A N/A getpass getuser secret N/A N/A os getuid 1234 foo bar /bin/sh N/A d N/A N/A N/A self client _dispatchCommand !echo hello N/A N/A N/A d addCallback N/A self assertEquals hello
 N/A d N/A setKnownConsoleSize N/A N/A self width height N/A N/A N/A 
        For the duration of this test, patch C{cftp}'s C{fcntl} module to return
        a fixed width and height.

        @param width: the width in characters
        @type width: C{int}
        @param height: the height in characters
        @type height: C{int}
         N/A tty FakeFcntl N/A object N/A ioctl N/A N/A self fd opt mutate N/A N/A N/A N/A opt N/A tty TIOCGWINSZ N/A N/A N/A N/A self fail Only window-size queries supported. N/A N/A N/A struct pack 4H height width 0 0 N/A N/A N/A N/A N/A self patch cftp fcntl N/A FakeFcntl N/A test_progressReporting N/A N/A self N/A N/A N/A 
        L{StdioClient._printProgressBar} prints a progress description,
        including percent done, amount transferred, transfer rate, and time
        remaining, all based the given start time, the given L{FileWrapper}'s
        progress information and the reactor's current time.
         N/A N/A N/A self setKnownConsoleSize 10 34 N/A clock N/A N/A self client reactor N/A Clock N/A wrapped N/A StringIO x N/A N/A wrapped name sample N/A wrapper N/A N/A cftp FileWrapper wrapped N/A N/A wrapper size N/A 1024 10 N/A startTime N/A N/A clock seconds N/A N/A N/A clock advance 2.0 N/A N/A wrapper total 4096 N/A N/A N/A N/A self client _printProgressBar wrapper startTime N/A N/A N/A self assertEquals N/A N/A N/A N/A self client transport value 
sample 40% 4.0kB 2.0kBps 00:03  N/A test_reportNoProgress N/A N/A self N/A N/A N/A 
        L{StdioClient._printProgressBar} prints a progress description that
        indicates 0 bytes transferred if no bytes have been transferred and no
        time has passed.
         N/A N/A N/A self setKnownConsoleSize 10 34 N/A clock N/A N/A self client reactor N/A Clock N/A wrapped N/A StringIO x N/A N/A wrapped name sample N/A wrapper N/A N/A cftp FileWrapper wrapped N/A startTime N/A N/A clock seconds N/A N/A N/A N/A self client _printProgressBar wrapper startTime N/A N/A N/A self assertEquals N/A N/A N/A N/A self client transport value 
sample  0% 0.0B 0.0Bps 00:00  N/A N/A FileTransferTestRealm N/A N/A __init__ N/A N/A self testDir N/A N/A N/A N/A self testDir testDir N/A requestAvatar N/A N/A self avatarID mind N/A interfaces N/A N/A a N/A FileTransferTestAvatar N/A self testDir N/A N/A N/A interfaces N/A 0 a N/A N/A N/A N/A None N/A N/A SFTPTestProcess N/A N/A protocol ProcessProtocol N/A N/A 
    Protocol for testing cftp. Provides an interface between Python (where all
    the tests are) and the cftp client process (which does the work that is
    being tested).
     __init__ N/A N/A self onOutReceived N/A N/A N/A 
        @param onOutReceived: A L{Deferred} to be fired as soon as data is
        received from stdout.
         N/A N/A N/A self clearBuffer N/A N/A self onOutReceived onOutReceived N/A N/A self onProcessEnd None N/A N/A self _expectingCommand None N/A N/A self _processEnded False N/A clearBuffer N/A N/A self N/A N/A N/A 
        Clear any buffered data received from stdout. Should be private.
         N/A N/A self buffer N/A N/A self _linesReceived N/A N/A N/A self _lineBuffer N/A outReceived N/A N/A self data N/A N/A N/A 
        Called by Twisted when the cftp client prints data to stdout.
         N/A N/A N/A log msg N/A got %s data N/A lines N/A N/A N/A N/A self _lineBuffer data split N/A N/A self _lineBuffer N/A N/A lines pop -1 N/A N/A N/A N/A self _linesReceived extend lines N/A N/A N/A self onOutReceived None N/A N/A N/A d N/A self onOutReceived N/A N/A self onOutReceived None N/A N/A N/A d callback data N/A N/A self buffer data N/A N/A N/A self _checkForCommand N/A _checkForCommand N/A N/A self N/A N/A N/A prompt cftp>  N/A N/A N/A self _expectingCommand N/A N/A self _lineBuffer prompt N/A N/A buf N/A N/A join N/A self _linesReceived N/A N/A N/A buf startswith prompt N/A N/A buf N/A buf N/A N/A len prompt N/A N/A N/A self clearBuffer N/A N/A d N/A self _expectingCommand N/A N/A self _expectingCommand None N/A N/A N/A d callback buf N/A errReceived N/A N/A self data N/A N/A N/A 
        Called by Twisted when the cftp client prints data to stderr.
         N/A N/A N/A log msg N/A err: %s data N/A getBuffer N/A N/A self N/A N/A N/A 
        Return the contents of the buffer of data received from stdout.
         N/A N/A self buffer N/A runCommand N/A N/A self command N/A N/A N/A 
        Issue the given command via the cftp client. Return a C{Deferred} that
        fires when the server returns a result. Note that the C{Deferred} will
        callback even if the server returns some kind of error.

        @param command: A string containing an sftp command.

        @return: A C{Deferred} that fires when the sftp server returns a
        result. The payload is the server's response string.
         N/A N/A self _expectingCommand N/A N/A defer Deferred N/A N/A N/A self clearBuffer N/A N/A N/A N/A self transport write N/A command N/A N/A self _expectingCommand N/A runScript N/A N/A self commands N/A N/A N/A 
        Run each command in sequence and return a Deferred that fires when all
        commands are completed.

        @param commands: A list of strings containing sftp commands.

        @return: A C{Deferred} that fires when all commands are completed. The
        payload is a list of response strings from the server, in the same
        order as the commands.
         N/A sem N/A N/A defer DeferredSemaphore 1 N/A dl N/A N/A N/A sem run N/A self runCommand command N/A command commands N/A N/A N/A defer gatherResults dl N/A killProcess N/A N/A self N/A N/A N/A 
        Kill the process if it is still running.

        If the process is still running, sends a KILL signal to the transport
        and returns a C{Deferred} which fires when L{processEnded} is called.

        @return: a C{Deferred}.
         N/A N/A self _processEnded N/A N/A N/A N/A defer succeed None N/A N/A self onProcessEnd N/A N/A defer Deferred N/A N/A N/A N/A self transport signalProcess KILL N/A N/A self onProcessEnd N/A processEnded N/A N/A self reason N/A N/A N/A 
        Called by Twisted when the cftp client process ends.
         N/A N/A self _processEnded True N/A N/A self onProcessEnd N/A N/A N/A d N/A self onProcessEnd N/A N/A self onProcessEnd None N/A N/A N/A d callback None N/A N/A CFTPClientTestBase N/A SFTPTestBase N/A setUp N/A N/A self N/A N/A N/A f N/A open dsa_test.pub w N/A N/A N/A f write N/A test_ssh publicDSA_openssh N/A N/A N/A f close N/A f N/A open dsa_test w N/A N/A N/A f write N/A test_ssh privateDSA_openssh N/A N/A N/A f close N/A N/A N/A os chmod dsa_test 33152 N/A f N/A open kh_test w N/A N/A N/A f write N/A 127.0.0.1  N/A test_ssh publicRSA_openssh N/A N/A N/A f close N/A N/A N/A SFTPTestBase setUp self N/A startServer N/A N/A self N/A N/A N/A realm N/A FileTransferTestRealm N/A self testDir N/A p N/A N/A portal Portal realm N/A N/A N/A p registerChecker N/A N/A test_ssh ConchTestPublicKeyChecker N/A fac N/A N/A test_ssh ConchTestServerFactory N/A N/A fac portal p N/A N/A self server N/A N/A reactor listenTCP 0 fac interface 127.0.0.1 N/A stopServer N/A N/A self N/A N/A N/A N/A N/A hasattr N/A N/A self server factory proto N/A N/A N/A N/A self _cbStopServer None N/A N/A N/A N/A N/A self server factory proto expectedLoseConnection 1 N/A d N/A N/A defer maybeDeferred N/A N/A N/A N/A N/A self server factory proto transport loseConnection N/A N/A N/A d addCallback N/A self _cbStopServer N/A d N/A _cbStopServer N/A N/A self ignored N/A N/A N/A N/A N/A defer maybeDeferred N/A N/A self server stopListening N/A tearDown N/A N/A self N/A N/A N/A f N/A dsa_test.pub dsa_test kh_test N/A N/A N/A N/A N/A N/A os remove f N/A N/A N/A N/A N/A N/A N/A SFTPTestBase tearDown self N/A N/A TestOurServerCmdLineClient N/A CFTPClientTestBase N/A setUp N/A N/A self N/A N/A N/A N/A N/A CFTPClientTestBase setUp self N/A N/A N/A self startServer N/A cmds -p %i -l testuser --known-hosts kh_test --user-authentications publickey --host-key-algorithms ssh-rsa -i dsa_test -a -v 127.0.0.1 N/A port N/A N/A N/A N/A self server getHost port N/A cmds N/A N/A test_conch _makeArgs N/A N/A N/A cmds port split mod cftp N/A N/A N/A log msg N/A running %s %s N/A N/A sys executable cmds N/A d N/A N/A defer Deferred N/A N/A self processProtocol N/A SFTPTestProcess d N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A N/A self processProtocol clearBuffer N/A env N/A N/A N/A os environ copy N/A N/A env N/A PYTHONPATH N/A N/A N/A os pathsep join N/A sys path N/A N/A N/A reactor spawnProcess N/A self processProtocol N/A sys executable cmds env env N/A d N/A tearDown N/A N/A self N/A N/A N/A d N/A N/A self stopServer N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A N/A self processProtocol killProcess N/A d N/A _killProcess N/A N/A self ignored N/A N/A N/A N/A N/A N/A N/A N/A N/A self processProtocol transport signalProcess KILL N/A N/A N/A N/A error ProcessExitedAlready N/A N/A N/A runCommand N/A N/A self command N/A N/A N/A 
        Run the given command with the cftp client. Return a C{Deferred} that
        fires when the command is complete. Payload is the server's output for
        that command.
         N/A N/A N/A N/A self processProtocol runCommand command N/A runScript N/A N/A self N/A commands N/A N/A 
        Run the given commands with the cftp client. Returns a C{Deferred}
        that fires when the commands are all complete. The C{Deferred}'s
        payload is a list of output for each command.
         N/A N/A N/A N/A self processProtocol runScript commands N/A testCdPwd N/A N/A self N/A N/A N/A 
        Test that 'pwd' reports the current remote directory, that 'lpwd'
        reports the current local directory, and that changing to a
        subdirectory then changing to its parent leaves you in the original
        remote directory.
         N/A homeDir N/A N/A N/A os path join N/A N/A os getcwd N/A self testDir N/A d N/A N/A self runScript pwd lpwd cd testDirectory cd .. pwd N/A N/A N/A d addCallback N/A N/A N/A xs N/A N/A N/A xs N/A 3 N/A xs N/A 4 N/A N/A N/A d addCallback N/A self assertEqual N/A homeDir N/A N/A os getcwd homeDir N/A d N/A testChAttrs N/A N/A self N/A N/A N/A 
        Check that 'ls -l' output includes the access permissions and that
        this output changes appropriately with 'chmod'.
         _check N/A N/A results N/A N/A N/A N/A N/A self flushLoggedErrors N/A N/A N/A self assertTrue N/A N/A N/A results N/A 0 startswith -rw-r--r-- N/A N/A N/A self assertEqual N/A results N/A 1 N/A N/A N/A self assertTrue N/A N/A N/A results N/A 2 startswith ---------- N/A results N/A 2 N/A N/A N/A self assertEqual N/A results N/A 3 N/A N/A d N/A N/A self runScript ls -l testfile1 chmod 0 testfile1 ls -l testfile1 chmod 644 testfile1 N/A N/A N/A d addCallback _check N/A testList N/A N/A self N/A N/A N/A 
        Check 'ls' works as expected. Checks for wildcards, hidden files,
        listing directories and listing empty directories.
         _check N/A N/A results N/A N/A N/A N/A N/A self assertEqual N/A results N/A 0 N/A testDirectory testRemoveFile testRenameFile testfile1 N/A N/A N/A self assertEqual N/A results N/A 1 N/A testDirectory testRemoveFile testRenameFile testfile1 N/A N/A N/A self assertEqual N/A results N/A 2 N/A testRemoveFile testRenameFile N/A N/A N/A self assertEqual N/A results N/A 3 N/A .testHiddenFile testRemoveFile testRenameFile N/A N/A N/A self assertEqual N/A results N/A 4 N/A N/A N/A d N/A N/A self runScript ls N/A ls ../ N/A N/A N/A os path basename N/A self testDir ls *File ls -a *File ls -l testDirectory N/A N/A N/A d addCallback N/A N/A N/A xs N/A N/A N/A N/A x split N/A x xs N/A N/A N/A d addCallback _check N/A testHelp N/A N/A self N/A N/A N/A 
        Check that running the '?' command returns help.
         N/A d N/A N/A self runCommand ? N/A N/A N/A d addCallback N/A self assertEqual N/A N/A N/A N/A N/A N/A cftp StdioClient None cmd_HELP strip N/A d N/A assertFilesEqual N/A N/A self name1 name2 msg N/A None N/A N/A 
        Assert that the files at C{name1} and C{name2} contain exactly the
        same data.
         N/A f1 N/A N/A N/A file name1 read N/A f2 N/A N/A N/A file name2 read N/A N/A N/A self failUnlessEqual f1 f2 msg N/A testGet N/A N/A self N/A N/A N/A 
        Test that 'get' saves the remote file to the correct local location,
        that the output of 'get' is correct and that 'rm' actually removes
        the file.
         N/A expectedOutput N/A Transferred %s/%s/testfile1 to %s/test file2 N/A N/A N/A os getcwd N/A self testDir N/A self testDir _checkGet N/A N/A result N/A N/A N/A N/A N/A self assertTrue N/A N/A result endswith expectedOutput N/A N/A N/A self assertFilesEqual N/A N/A self testDir /testfile1 N/A N/A self testDir /test file2 get failed N/A N/A N/A self runCommand rm "test file2" N/A N/A d N/A N/A self runCommand N/A get testfile1 "%s/test file2" N/A N/A self testDir N/A N/A N/A d addCallback _checkGet N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self failIf N/A N/A N/A os path exists N/A N/A self testDir /test file2 N/A d N/A testWildcardGet N/A N/A self N/A N/A N/A 
        Test that 'get' works correctly when given wildcard parameters.
         _check N/A N/A ignored N/A N/A N/A N/A N/A self assertFilesEqual N/A N/A self testDir /testRemoveFile testRemoveFile testRemoveFile get failed N/A N/A N/A self assertFilesEqual N/A N/A self testDir /testRenameFile testRenameFile testRenameFile get failed N/A N/A d N/A N/A self runCommand get testR* N/A N/A N/A d addCallback _check N/A testPut N/A N/A self N/A N/A N/A 
        Check that 'put' uploads files correctly and that they can be
        successfully removed. Also check the output of the put command.
         N/A expectedOutput N/A Transferred %s/testfile1 to %s/%s/test"file2 N/A N/A self testDir N/A N/A os getcwd N/A self testDir _checkPut N/A N/A result N/A N/A N/A N/A N/A self assertFilesEqual N/A N/A self testDir /testfile1 N/A N/A self testDir /test"file2 N/A N/A N/A self failUnless N/A N/A result endswith expectedOutput N/A N/A N/A self runCommand rm "test\"file2" N/A N/A d N/A N/A self runCommand N/A put %s/testfile1 "test\"file2" N/A N/A self testDir N/A N/A N/A d addCallback _checkPut N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self failIf N/A N/A N/A os path exists N/A N/A self testDir /test"file2 N/A d N/A test_putOverLongerFile N/A N/A self N/A N/A N/A 
        Check that 'put' uploads files correctly when overwriting a longer
        file.
         N/A f N/A file N/A N/A N/A os path join N/A self testDir shorterFile w N/A N/A N/A f write a N/A N/A N/A f close N/A f N/A file N/A N/A N/A os path join N/A self testDir longerFile w N/A N/A N/A f write bb N/A N/A N/A f close _checkPut N/A N/A result N/A N/A N/A N/A N/A self assertFilesEqual N/A N/A self testDir /shorterFile N/A N/A self testDir /longerFile N/A N/A d N/A N/A self runCommand N/A put %s/shorterFile longerFile N/A N/A self testDir N/A N/A N/A d addCallback _checkPut N/A d N/A test_putMultipleOverLongerFile N/A N/A self N/A N/A N/A 
        Check that 'put' uploads files correctly when overwriting a longer
        file and you use a wildcard to specify the files to upload.
         N/A N/A N/A os mkdir N/A N/A N/A os path join N/A self testDir dir N/A f N/A file N/A N/A N/A os path join N/A self testDir dir file w N/A N/A N/A f write a N/A N/A N/A f close N/A f N/A file N/A N/A N/A os path join N/A self testDir file w N/A N/A N/A f write bb N/A N/A N/A f close _checkPut N/A N/A result N/A N/A N/A N/A N/A self assertFilesEqual N/A N/A self testDir /dir/file N/A N/A self testDir /file N/A N/A d N/A N/A self runCommand N/A put %s/dir/* N/A N/A self testDir N/A N/A N/A d addCallback _checkPut N/A d N/A testWildcardPut N/A N/A self N/A N/A N/A 
        What happens if you issue a 'put' command and include a wildcard (i.e.
        '*') in parameter? Check that all files matching the wildcard are
        uploaded to the correct directory.
         check N/A N/A results N/A N/A N/A N/A N/A self assertEqual N/A results N/A 0 N/A N/A N/A self assertEqual N/A results N/A 2 N/A N/A N/A self assertFilesEqual N/A N/A self testDir /testRemoveFile N/A N/A self testDir /../testRemoveFile testRemoveFile get failed N/A N/A N/A self assertFilesEqual N/A N/A self testDir /testRenameFile N/A N/A self testDir /../testRenameFile testRenameFile get failed N/A N/A d N/A N/A self runScript cd .. N/A put %s/testR* N/A N/A self testDir N/A cd %s N/A N/A N/A os path basename N/A self testDir N/A N/A N/A d addCallback check N/A d N/A testLink N/A N/A self N/A N/A N/A 
        Test that 'ln' creates a file which appears as a link in the output of
        'ls'. Check that removing the new file succeeds without output.
         _check N/A N/A results N/A N/A N/A N/A N/A self flushLoggedErrors N/A N/A N/A self assertEqual N/A results N/A 0 N/A N/A N/A self assertTrue N/A N/A N/A results N/A 1 startswith l link failed N/A N/A N/A self runCommand rm testLink N/A N/A d N/A N/A self runScript ln testLink testfile1 ls -l testLink N/A N/A N/A d addCallback _check N/A N/A N/A d addCallback N/A self assertEqual N/A d N/A testRemoteDirectory N/A N/A self N/A N/A N/A 
        Test that we can create and remove directories with the cftp client.
         _check N/A N/A results N/A N/A N/A N/A N/A self assertEqual N/A results N/A 0 N/A N/A N/A self assertTrue N/A N/A N/A results N/A 1 startswith d N/A N/A N/A self runCommand rmdir testMakeDirectory N/A N/A d N/A N/A self runScript mkdir testMakeDirectory ls -l testMakeDirector? N/A N/A N/A d addCallback _check N/A N/A N/A d addCallback N/A self assertEqual N/A d N/A test_existingRemoteDirectory N/A N/A self N/A N/A N/A 
        Test that a C{mkdir} on an existing directory fails with the
        appropriate error, and doesn't log an useless error server side.
         _check N/A N/A results N/A N/A N/A N/A N/A self assertEquals N/A results N/A 0 N/A N/A N/A self assertEquals N/A results N/A 1 remote error 11: mkdir failed N/A N/A d N/A N/A self runScript mkdir testMakeDirectory mkdir testMakeDirectory N/A N/A N/A d addCallback _check N/A d N/A testLocalDirectory N/A N/A self N/A N/A N/A 
        Test that we can create a directory locally and remove it with the
        cftp client. This test works because the 'remote' server is running
        out of a local directory.
         N/A d N/A N/A self runCommand N/A lmkdir %s/testLocalDirectory N/A N/A self testDir N/A N/A N/A d addCallback N/A self assertEqual N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A self runCommand rmdir testLocalDirectory N/A N/A N/A d addCallback N/A self assertEqual N/A d N/A testRename N/A N/A self N/A N/A N/A 
        Test that we can rename a file.
         _check N/A N/A results N/A N/A N/A N/A N/A self assertEqual N/A results N/A 0 N/A N/A N/A self assertEqual N/A results N/A 1 testfile2 N/A N/A N/A self runCommand rename testfile2 testfile1 N/A N/A d N/A N/A self runScript rename testfile1 testfile2 ls testfile? N/A N/A N/A d addCallback _check N/A N/A N/A d addCallback N/A self assertEqual N/A d N/A N/A TestOurServerBatchFile N/A CFTPClientTestBase N/A setUp N/A N/A self N/A N/A N/A N/A N/A CFTPClientTestBase setUp self N/A N/A N/A self startServer N/A tearDown N/A N/A self N/A N/A N/A N/A N/A CFTPClientTestBase tearDown self N/A N/A N/A self stopServer N/A _getBatchOutput N/A N/A self f N/A N/A N/A fn N/A N/A self mktemp N/A N/A N/A N/A open fn w write f N/A port N/A N/A N/A N/A self server getHost port N/A cmds N/A -p %i -l testuser --known-hosts kh_test --user-authentications publickey --host-key-algorithms ssh-rsa -i dsa_test -a -v -b %s 127.0.0.1 N/A port fn N/A cmds N/A N/A N/A test_conch _makeArgs N/A N/A cmds split mod cftp N/A 1 N/A N/A N/A log msg N/A running %s %s N/A N/A sys executable cmds N/A env N/A N/A N/A os environ copy N/A N/A env N/A PYTHONPATH N/A N/A N/A os pathsep join N/A sys path N/A N/A N/A N/A self server factory expectedLoseConnection 1 N/A d N/A getProcessOutputAndValue N/A sys executable cmds env env _cleanup N/A N/A res N/A N/A N/A N/A N/A os remove fn N/A res N/A N/A N/A N/A d addCallback N/A N/A N/A res N/A N/A res N/A 0 N/A N/A N/A d addBoth _cleanup N/A d N/A testBatchFile N/A N/A self N/A N/A N/A Test whether batch file function of cftp ('cftp -b batchfile').
        This works by treating the file as a list of commands to be run.
         N/A cmds pwd
ls
exit
 _cbCheckResult N/A N/A res N/A N/A N/A res N/A N/A res split N/A N/A N/A log msg N/A RES %s N/A str res N/A N/A N/A self failUnless N/A N/A N/A N/A res N/A 1 find N/A self testDir -1 N/A repr res N/A N/A N/A self failUnlessEqual N/A res N/A 3 -2 N/A testDirectory testRemoveFile testRenameFile testfile1 N/A N/A d N/A N/A self _getBatchOutput cmds N/A N/A N/A d addCallback _cbCheckResult N/A d N/A testError N/A N/A self N/A N/A N/A Test that an error in the batch file stops running the batch.
         N/A cmds chown 0 missingFile
pwd
exit
 _cbCheckResult N/A N/A res N/A N/A N/A N/A N/A self failIf N/A N/A N/A res find N/A self testDir -1 N/A N/A d N/A N/A self _getBatchOutput cmds N/A N/A N/A d addCallback _cbCheckResult N/A d N/A testIgnoredError N/A N/A self N/A N/A N/A Test that a minus sign '-' at the front of a line ignores
        any errors.
         N/A cmds -chown 0 missingFile
pwd
exit
 _cbCheckResult N/A N/A res N/A N/A N/A N/A N/A self failIf N/A N/A N/A res find N/A self testDir -1 N/A N/A d N/A N/A self _getBatchOutput cmds N/A N/A N/A d addCallback _cbCheckResult N/A d N/A N/A TestOurServerSftpClient N/A CFTPClientTestBase N/A N/A 
    Test the sftp server against sftp command line client.
     setUp N/A N/A self N/A N/A N/A N/A N/A CFTPClientTestBase setUp self N/A N/A N/A self startServer N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self stopServer N/A test_extendedAttributes N/A N/A self N/A N/A N/A 
        Test the return of extended attributes by the server: the sftp client
        should ignore them, but still be able to parse the response correctly.

        This test is mainly here to check that
        L{filetransfer.FILEXFER_ATTR_EXTENDED} has the correct value.
         N/A fn N/A N/A self mktemp N/A N/A N/A N/A open fn w write ls .
exit N/A port N/A N/A N/A N/A self server getHost port N/A oldGetAttr N/A FileTransferForTestAvatar _getAttrs _getAttrs N/A N/A self s N/A N/A N/A attrs N/A oldGetAttr self s N/A N/A attrs N/A ext_foo bar N/A attrs N/A N/A N/A N/A self patch FileTransferForTestAvatar _getAttrs _getAttrs N/A N/A N/A N/A self server factory expectedLoseConnection True N/A cmds N/A -o IdentityFile=dsa_test -o UserKnownHostsFile=kh_test -o HostKeyAlgorithms=ssh-rsa -o N/A Port=%i N/A port -b fn testuser@127.0.0.1 N/A d N/A getProcessOutputAndValue sftp cmds check N/A N/A result N/A N/A N/A N/A N/A self assertEquals N/A result N/A 2 0 N/A i N/A testDirectory testRemoveFile testRenameFile testfile1 N/A N/A N/A N/A self assertIn i N/A result N/A 0 N/A N/A N/A N/A d addCallback check N/A N/A N/A N/A N/A unix None N/A Crypto None N/A pyasn1 None N/A N/A N/A interfaces IReactorProcess reactor None None N/A N/A N/A _reason None N/A N/A _reason don't run w/o spawnProcess or PyCrypto or pyasn1 N/A N/A TestOurServerCmdLineClient skip _reason N/A N/A TestOurServerBatchFile skip _reason N/A N/A TestOurServerSftpClient skip _reason N/A N/A StdioClientTests skip _reason N/A twisted.python.procutils which N/A N/A N/A which sftp N/A N/A N/A TestOurServerSftpClient skip no sftp command-line client available