Module Expr Str Import alias alias alias Import alias alias alias TryExcept body Import alias alias handlers ExceptHandler type NameLoad body Assign NameStore NameStore NameLoad TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse ImportFrom alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias Import alias handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore NameLoad TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIs Call NameLoad NameLoad Str NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Return SubscriptLoad Dict NameLoad NameLoad Index NameLoad decorator_list Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd Str NameLoad Assign AttributeStore NameLoad attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Yield NameLoad Expr Yield NameLoad Expr Yield NameLoad Expr Yield NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr TupleLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd Str NameLoad Assign AttributeStore NameLoad attr BinOpAdd Str NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str FunctionDef arguments args defaults body Expr Yield NameLoad Expr Yield NameLoad Expr Yield NameLoad Expr Yield NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str Str decorator_list If CompareIs NameLoad NameLoad body Assign NameStore Str Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str TupleLoad Str NameLoad NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Num Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Str NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args NameParam defaults Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args NameParam defaults Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args NameParam defaults Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args defaults BinOpAdd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad NameLoad Expr Call 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 NameLoad Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr 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 AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad NameLoad Expr Call 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 NameLoad Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args defaults vararg kwarg NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args defaults vararg kwarg NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str NameLoad Num Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Expr Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr 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 Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad Str NameLoad Return 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 FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Assign NameStore ListLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Dict AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Assign NameStore Dict Str Lambda arguments args defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Num attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num 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 Dict Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Dict Str Str decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str decorator_list
N/A N/A 
Tests for L{twisted.application.app} and L{twisted.scripts.twistd}.
 N/A signal inspect errno N/A os sys StringIO N/A N/A N/A pwd grp N/A N/A N/A ImportError N/A N/A pwd grp None N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle zope.interface implements zope.interface.verify verifyObject twisted.trial unittest twisted.test.test_process MockOS twisted plugin twisted.application.service IServiceMaker twisted.application service app reactors twisted.scripts twistd twisted.python log twisted.python.usage UsageError twisted.python.log ILogObserver twisted.python.versions Version twisted.python.components Componentized twisted.internet.defer Deferred twisted.internet.interfaces IReactorDaemonize twisted.python.fakepwd UserDatabase N/A N/A twisted.python syslog N/A N/A N/A ImportError N/A N/A syslog None N/A N/A twisted.scripts _twistd_unix N/A N/A N/A ImportError N/A N/A _twistd_unix None N/A twisted.scripts._twistd_unix UnixApplicationRunner twisted.scripts._twistd_unix UnixAppLogger N/A N/A N/A profile N/A N/A N/A ImportError N/A N/A profile None N/A N/A N/A hotshot N/A hotshot.stats N/A N/A N/A N/A ImportError SystemExit N/A N/A hotshot None N/A N/A N/A pstats N/A cProfile N/A N/A N/A ImportError N/A N/A cProfile None N/A N/A N/A getattr os setuid None None N/A N/A setuidSkip Platform does not support --uid/--gid twistd options. N/A N/A setuidSkip None patchUserDatabase N/A N/A patch user uid group gid N/A N/A N/A 
    Patch L{pwd.getpwnam} so that it behaves as though only one user exists
    and patch L{grp.getgrnam} so that it behaves as though only one group
    exists.

    @param patch: A function like L{TestCase.patch} which will be used to
        install the fake implementations.

    @type user: C{str}
    @param user: The name of the single user which will exist.

    @type uid: C{int}
    @param uid: The UID of the single user which will exist.

    @type group: C{str}
    @param group: The name of the single user which will exist.

    @type gid: C{int}
    @param gid: The GID of the single group which will exist.
     N/A pwent N/A N/A pwd getpwuid N/A N/A os getuid N/A grent N/A N/A grp getgrgid N/A N/A os getgid N/A database N/A UserDatabase N/A N/A N/A database addUser user N/A pwent pw_passwd uid N/A pwent pw_gid N/A pwent pw_gecos N/A pwent pw_dir N/A pwent pw_shell getgrnam N/A N/A name N/A N/A N/A result N/A list grent N/A N/A result N/A N/A N/A result index N/A grent gr_name group N/A N/A result N/A N/A N/A result index N/A grent gr_gid gid N/A result N/A tuple result N/A N/A N/A group result N/A name N/A N/A N/A patch pwd getpwnam N/A database getpwnam N/A N/A patch grp getgrnam getgrnam N/A MockServiceMaker N/A object N/A N/A 
    A non-implementation of L{twisted.application.service.IServiceMaker}.
     N/A tapname ueoa makeService N/A N/A self options N/A N/A N/A 
        Take a L{usage.Options} instance and return a
        L{service.IService} provider.
         N/A N/A self options options N/A N/A self service N/A N/A service Service N/A N/A self service N/A N/A CrippledAppLogger N/A N/A app AppLogger N/A N/A 
    @see: CrippledApplicationRunner.
     start N/A N/A self application N/A N/A N/A N/A N/A CrippledApplicationRunner N/A N/A twistd _SomeApplicationRunner N/A N/A 
    An application runner that cripples the platform-specific runner and
    nasty side-effect-having code so that we can use it without actually
    running any environment-affecting code.
     N/A loggerFactory CrippledAppLogger preApplication N/A N/A self N/A N/A N/A N/A postApplication N/A N/A self N/A N/A N/A N/A N/A ServerOptionsTest N/A N/A unittest TestCase N/A N/A 
    Non-platform-specific tests for the pltaform-specific ServerOptions class.
     test_subCommands N/A N/A self N/A N/A N/A 
        subCommands is built from IServiceMaker plugins, and is sorted
        alphabetically.
         FakePlugin N/A object N/A __init__ N/A N/A self name N/A N/A N/A N/A self tapname name N/A N/A self _options N/A options for  name N/A N/A self description N/A description of  name N/A options N/A N/A self N/A N/A N/A N/A self _options N/A N/A N/A apple N/A FakePlugin apple N/A banana N/A FakePlugin banana N/A coconut N/A FakePlugin coconut N/A donut N/A FakePlugin donut getPlugins N/A N/A interface N/A N/A N/A N/A N/A self assertEqual interface IServiceMaker N/A N/A coconut N/A N/A banana N/A N/A donut N/A N/A apple N/A N/A config N/A N/A twistd ServerOptions N/A N/A N/A self assertEqual N/A config _getPlugins N/A plugin getPlugins N/A N/A config _getPlugins getPlugins N/A subCommands N/A config subCommands N/A expectedOrder N/A apple banana coconut donut N/A N/A subCommand expectedCommand N/A zip subCommands expectedOrder N/A N/A N/A name shortcut parserClass documentation subCommand N/A N/A N/A self assertEqual name N/A expectedCommand tapname N/A N/A N/A self assertEqual shortcut None N/A N/A N/A N/A self assertEqual N/A parserClass N/A expectedCommand _options N/A N/A N/A self assertEqual documentation N/A expectedCommand description N/A test_sortedReactorHelp N/A N/A self N/A N/A N/A 
        Reactor names are listed alphabetically by I{--help-reactors}.
         FakeReactorInstaller N/A object N/A __init__ N/A N/A self name N/A N/A N/A N/A self shortName N/A name of  name N/A N/A self description N/A description of  name N/A N/A N/A apple N/A FakeReactorInstaller apple N/A banana N/A FakeReactorInstaller banana N/A coconut N/A FakeReactorInstaller coconut N/A donut N/A FakeReactorInstaller donut getReactorTypes N/A N/A N/A N/A N/A N/A coconut N/A N/A banana N/A N/A donut N/A N/A apple N/A N/A config N/A N/A twistd ServerOptions N/A N/A N/A self assertEqual N/A config _getReactorTypes N/A reactors getReactorTypes N/A N/A config _getReactorTypes getReactorTypes N/A N/A config messageOutput N/A N/A StringIO StringIO N/A N/A N/A self assertRaises SystemExit N/A config parseOptions N/A --help-reactors N/A helpOutput N/A N/A N/A config messageOutput getvalue N/A indexes N/A N/A reactor N/A apple banana coconut donut N/A getIndex N/A N/A s N/A N/A N/A N/A N/A self assertIn s helpOutput N/A N/A N/A indexes append N/A N/A helpOutput index s N/A N/A N/A getIndex N/A reactor shortName N/A N/A getIndex N/A reactor description N/A N/A N/A self assertEqual indexes N/A sorted indexes N/A reactor descriptions were not in alphabetical order: %r N/A helpOutput N/A test_postOptionsSubCommandCausesNoSave N/A N/A self N/A N/A N/A 
        postOptions should set no_save to True when a subcommand is used.
         N/A config N/A N/A twistd ServerOptions N/A N/A config subCommand ueoa N/A N/A N/A config postOptions N/A N/A N/A self assertEqual N/A config N/A no_save True N/A test_postOptionsNoSubCommandSavesAsUsual N/A N/A self N/A N/A N/A 
        If no sub command is used, postOptions should not touch no_save.
         N/A config N/A N/A twistd ServerOptions N/A N/A N/A config postOptions N/A N/A N/A self assertEqual N/A config N/A no_save False N/A test_listAllProfilers N/A N/A self N/A N/A N/A 
        All the profilers that can be used in L{app.AppProfiler} are listed in
        the help output.
         N/A config N/A N/A twistd ServerOptions N/A helpOutput N/A str config N/A profiler N/A N/A app AppProfiler profilers N/A N/A N/A N/A self assertIn profiler helpOutput N/A test_defaultUmask N/A N/A self N/A N/A N/A 
        The default value for the C{umask} option is C{None}.
         N/A config N/A N/A twistd ServerOptions N/A N/A N/A self assertEqual N/A config N/A umask None N/A test_umask N/A N/A self N/A N/A N/A 
        The value given for the C{umask} option is parsed as an octal integer
        literal.
         N/A config N/A N/A twistd ServerOptions N/A N/A N/A config parseOptions N/A --umask 123 N/A N/A N/A self assertEqual N/A config N/A umask 83 N/A N/A N/A config parseOptions N/A --umask 0123 N/A N/A N/A self assertEqual N/A config N/A umask 83 N/A test_invalidUmask N/A N/A self N/A N/A N/A 
        If a value is given for the C{umask} option which cannot be parsed as
        an integer, L{UsageError} is raised by L{ServerOptions.parseOptions}.
         N/A config N/A N/A twistd ServerOptions N/A N/A N/A self assertRaises UsageError N/A config parseOptions N/A --umask abcdef N/A N/A N/A _twistd_unix None N/A N/A msg twistd unix not available N/A N/A test_defaultUmask skip N/A test_umask skip N/A test_invalidUmask skip msg test_unimportableConfiguredLogObserver N/A N/A self N/A N/A N/A 
        C{--logger} with an unimportable module raises a L{UsageError}.
         N/A config N/A N/A twistd ServerOptions N/A e N/A N/A self assertRaises UsageError N/A config parseOptions N/A --logger no.such.module.I.hope N/A N/A N/A self assertTrue N/A N/A N/A N/A e args N/A 0 startswith Logger 'no.such.module.I.hope' could not be imported: 'no.such.module.I.hope' does not name an object N/A N/A N/A self assertNotIn N/A N/A e args N/A 0 N/A test_badAttributeWithConfiguredLogObserver N/A N/A self N/A N/A N/A 
        C{--logger} with a non-existent object raises a L{UsageError}.
         N/A config N/A N/A twistd ServerOptions N/A e N/A N/A self assertRaises UsageError N/A config parseOptions N/A --logger twisted.test.test_twistd.FOOBAR N/A N/A N/A self assertTrue N/A N/A N/A N/A e args N/A 0 startswith Logger 'twisted.test.test_twistd.FOOBAR' could not be imported: 'module' object has no attribute 'FOOBAR' N/A N/A N/A self assertNotIn N/A N/A e args N/A 0 N/A N/A TapFileTest N/A N/A unittest TestCase N/A N/A 
    Test twistd-related functionality that requires a tap file on disk.
     setUp N/A N/A self N/A N/A N/A 
        Create a trivial Application and put it in a tap file on disk.
         N/A N/A self tapfile N/A N/A self mktemp N/A f N/A file N/A self tapfile wb N/A N/A N/A pickle dump N/A N/A service Application Hi! f N/A N/A N/A f close N/A test_createOrGetApplicationWithTapFile N/A N/A self N/A N/A N/A 
        Ensure that the createOrGetApplication call that 'twistd -f foo.tap'
        makes will load the Application out of foo.tap.
         N/A config N/A N/A twistd ServerOptions N/A N/A N/A config parseOptions N/A -f N/A self tapfile N/A application N/A N/A N/A CrippledApplicationRunner config createOrGetApplication N/A N/A N/A self assertEqual N/A N/A N/A service IService application name Hi! N/A N/A TestLoggerFactory N/A object N/A N/A 
    A logger factory for L{TestApplicationRunner}.
     __init__ N/A N/A self runner N/A N/A N/A N/A self runner runner N/A start N/A N/A self application N/A N/A N/A 
        Save the logging start on the C{runner} instance.
         N/A N/A N/A N/A N/A self runner order append log N/A N/A N/A self runner hadApplicationLogObserver N/A hasattr N/A self runner application N/A stop N/A N/A self N/A N/A N/A 
        Don't log anything.
         N/A N/A TestApplicationRunner N/A N/A app ApplicationRunner N/A N/A 
    An ApplicationRunner which tracks the environment in which its methods are
    called.
     __init__ N/A N/A self options N/A N/A N/A N/A N/A N/A app ApplicationRunner __init__ self options N/A N/A self order N/A N/A N/A self logger N/A TestLoggerFactory self N/A preApplication N/A N/A self N/A N/A N/A N/A N/A N/A self order append pre N/A N/A self hadApplicationPreApplication N/A hasattr self application N/A postApplication N/A N/A self N/A N/A N/A N/A N/A N/A self order append post N/A N/A self hadApplicationPostApplication N/A hasattr self application N/A N/A ApplicationRunnerTest N/A N/A unittest TestCase N/A N/A 
    Non-platform-specific tests for the platform-specific ApplicationRunner.
     setUp N/A N/A self N/A N/A N/A config N/A N/A twistd ServerOptions N/A N/A self serviceMaker N/A MockServiceMaker N/A N/A config loadedPlugins N/A test_command N/A self serviceMaker N/A N/A config subOptions N/A object N/A N/A config subCommand test_command N/A N/A self config config N/A test_applicationRunnerGetsCorrectApplication N/A N/A self N/A N/A N/A 
        Ensure that a twistd plugin gets used in appropriate ways: it
        is passed its Options instance, and the service it returns is
        added to the application.
         N/A arunner N/A CrippledApplicationRunner N/A self config N/A N/A N/A arunner run N/A N/A N/A self assertIdentical N/A N/A self serviceMaker options N/A N/A self config subOptions ServiceMaker.makeService needs to be passed the correct sub Command object. N/A N/A N/A self assertIdentical N/A N/A self serviceMaker service N/A N/A N/A N/A service IService N/A arunner application services N/A 0 ServiceMaker.makeService's result needs to be set as a child of the Application. N/A test_preAndPostApplication N/A N/A self N/A N/A N/A 
        Test thet preApplication and postApplication methods are
        called by ApplicationRunner.run() when appropriate.
         N/A s N/A TestApplicationRunner N/A self config N/A N/A N/A s run N/A N/A N/A self assertFalse N/A s hadApplicationPreApplication N/A N/A N/A self assertTrue N/A s hadApplicationPostApplication N/A N/A N/A self assertTrue N/A s hadApplicationLogObserver N/A N/A N/A self assertEqual N/A s order N/A pre log post N/A _applicationStartsWithConfiguredID N/A N/A self argv uid gid N/A N/A N/A 
        Assert that given a particular command line, an application is started
        as a particular UID/GID.

        @param argv: A list of strings giving the options to parse.
        @param uid: An integer giving the expected UID.
        @param gid: An integer giving the expected GID.
         N/A N/A N/A N/A self config parseOptions argv N/A events N/A FakeUnixApplicationRunner N/A N/A twistd _SomeApplicationRunner N/A setupEnvironment N/A N/A self chroot rundir nodaemon umask pidfile N/A N/A N/A N/A N/A events append environment N/A shedPrivileges N/A N/A self euid uid gid N/A N/A N/A N/A N/A events append N/A privileges euid uid gid N/A startReactor N/A N/A self reactor oldstdout oldstderr N/A N/A N/A N/A N/A events append reactor N/A removePID N/A N/A self pidfile N/A N/A N/A N/A N/A FakeService N/A object N/A N/A N/A implements N/A service IService N/A service IProcess N/A processName None N/A uid None N/A gid None setName N/A N/A self name N/A N/A N/A N/A setServiceParent N/A N/A self parent N/A N/A N/A N/A disownServiceParent N/A N/A self N/A N/A N/A N/A privilegedStartService N/A N/A self N/A N/A N/A N/A N/A events append privilegedStartService N/A startService N/A N/A self N/A N/A N/A N/A N/A events append startService N/A stopService N/A N/A self N/A N/A N/A N/A N/A N/A application N/A FakeService N/A N/A verifyObject N/A service IService application N/A N/A verifyObject N/A service IProcess application N/A runner N/A FakeUnixApplicationRunner N/A self config N/A N/A N/A runner preApplication N/A N/A runner application application N/A N/A N/A runner postApplication N/A N/A N/A self assertEqual events N/A environment privilegedStartService N/A privileges False uid gid startService reactor N/A test_applicationStartsWithConfiguredNumericIDs N/A N/A self N/A N/A N/A 
        L{postApplication} should change the UID and GID to the values
        specified as numeric strings by the configuration after running
        L{service.IService.privilegedStartService} and before running
        L{service.IService.startService}.
         N/A uid 1234 N/A gid 4321 N/A N/A N/A self _applicationStartsWithConfiguredID N/A --uid N/A str uid --gid N/A str gid uid gid N/A N/A N/A test_applicationStartsWithConfiguredNumericIDs skip setuidSkip test_applicationStartsWithConfiguredNameIDs N/A N/A self N/A N/A N/A 
        L{postApplication} should change the UID and GID to the values
        specified as user and group names by the configuration after running
        L{service.IService.privilegedStartService} and before running
        L{service.IService.startService}.
         N/A user foo N/A uid 1234 N/A group bar N/A gid 4321 N/A N/A patchUserDatabase N/A self patch user uid group gid N/A N/A N/A self _applicationStartsWithConfiguredID N/A --uid user --gid group uid gid N/A N/A N/A test_applicationStartsWithConfiguredNameIDs skip setuidSkip test_startReactorRunsTheReactor N/A N/A self N/A N/A N/A 
        L{startReactor} calls L{reactor.run}.
         N/A reactor N/A DummyReactor N/A runner N/A N/A app ApplicationRunner N/A profile profiler debug False profile False N/A N/A N/A runner startReactor reactor None None N/A N/A N/A self assertTrue N/A reactor called startReactor did not call reactor.run() N/A N/A UnixApplicationRunnerSetupEnvironmentTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{UnixApplicationRunner.setupEnvironment}.

    @ivar root: The root of the filesystem, or C{unset} if none has been
        specified with a call to L{os.chroot} (patched for this TestCase with
        L{UnixApplicationRunnerSetupEnvironmentTests.chroot ).

    @ivar cwd: The current working directory of the process, or C{unset} if
        none has been specified with a call to L{os.chdir} (patched for this
        TestCase with L{UnixApplicationRunnerSetupEnvironmentTests.chdir).

    @ivar mask: The current file creation mask of the process, or C{unset} if
        none has been specified with a call to L{os.umask} (patched for this
        TestCase with L{UnixApplicationRunnerSetupEnvironmentTests.umask).

    @ivar daemon: A boolean indicating whether daemonization has been performed
        by a call to L{_twistd_unix.daemonize} (patched for this TestCase with
        L{UnixApplicationRunnerSetupEnvironmentTests.
     N/A N/A _twistd_unix None N/A N/A skip twistd unix not available N/A unset N/A object setUp N/A N/A self N/A N/A N/A N/A self root N/A self unset N/A N/A self cwd N/A self unset N/A N/A self mask N/A self unset N/A N/A self daemon False N/A N/A self pid N/A N/A os getpid N/A N/A N/A self patch os chroot N/A N/A N/A path N/A N/A setattr self root path N/A N/A N/A self patch os chdir N/A N/A N/A path N/A N/A setattr self cwd path N/A N/A N/A self patch os umask N/A N/A N/A mask N/A N/A setattr self mask mask N/A N/A N/A self patch _twistd_unix daemonize N/A self daemonize N/A N/A self runner N/A UnixApplicationRunner N/A N/A daemonize N/A N/A self reactor os N/A N/A N/A 
        Indicate that daemonization has happened and change the PID so that the
        value written to the pidfile can be tested in the daemonization case.
         N/A N/A self daemon True N/A N/A N/A self patch os getpid N/A N/A N/A N/A N/A N/A self pid 1 N/A test_chroot N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} changes the root of the
        filesystem if passed a non-C{None} value for the C{chroot} parameter.
         N/A N/A N/A N/A self runner setupEnvironment /foo/bar . True None None N/A N/A N/A self assertEqual N/A self root /foo/bar N/A test_noChroot N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} does not change the root of
        the filesystem if passed C{None} for the C{chroot} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None . True None None N/A N/A N/A self assertIdentical N/A self root N/A self unset N/A test_changeWorkingDirectory N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} changes the working directory
        of the process to the path given for the C{rundir} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None /foo/bar True None None N/A N/A N/A self assertEqual N/A self cwd /foo/bar N/A test_daemonize N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} daemonizes the process if
        C{False} is passed for the C{nodaemon} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None . False None None N/A N/A N/A self assertTrue N/A self daemon N/A test_noDaemonize N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} does not daemonize the
        process if C{True} is passed for the C{nodaemon} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None . True None None N/A N/A N/A self assertFalse N/A self daemon N/A test_nonDaemonPIDFile N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} writes the process's PID to
        the file specified by the C{pidfile} parameter.
         N/A pidfile N/A N/A self mktemp N/A N/A N/A N/A self runner setupEnvironment None . True None pidfile N/A fObj N/A file pidfile N/A pid N/A int N/A N/A fObj read N/A N/A N/A fObj close N/A N/A N/A self assertEqual pid N/A self pid N/A test_daemonPIDFile N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} writes the daemonized
        process's PID to the file specified by the C{pidfile} parameter if
        C{nodaemon} is C{False}.
         N/A pidfile N/A N/A self mktemp N/A N/A N/A N/A self runner setupEnvironment None . False None pidfile N/A fObj N/A file pidfile N/A pid N/A int N/A N/A fObj read N/A N/A N/A fObj close N/A N/A N/A self assertEqual pid N/A N/A self pid 1 N/A test_umask N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} changes the process umask to
        the value specified by the C{umask} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None . False 123 None N/A N/A N/A self assertEqual N/A self mask 123 N/A test_noDaemonizeNoUmask N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} doesn't change the process
        umask if C{None} is passed for the C{umask} parameter and C{True} is
        passed for the C{nodaemon} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None . True None None N/A N/A N/A self assertIdentical N/A self mask N/A self unset N/A test_daemonizedNoUmask N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.setupEnvironment} changes the process umask to
        C{0077} if C{None} is passed for the C{umask} parameter and C{False} is
        passed for the C{nodaemon} parameter.
         N/A N/A N/A N/A self runner setupEnvironment None . False None None N/A N/A N/A self assertEqual N/A self mask 63 N/A N/A UnixApplicationRunnerStartApplicationTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{UnixApplicationRunner.startApplication}.
     N/A N/A _twistd_unix None N/A N/A skip twistd unix not available test_setupEnvironment N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.startApplication} calls
        L{UnixApplicationRunner.setupEnvironment} with the chroot, rundir,
        nodaemon, umask, and pidfile parameters from the configuration it is
        constructed with.
         N/A options N/A N/A twistd ServerOptions N/A N/A N/A options parseOptions N/A --nodaemon --umask 0070 --chroot /foo/chroot --rundir /foo/rundir --pidfile /foo/pidfile N/A application N/A N/A service Application test_setupEnvironment N/A N/A self runner N/A UnixApplicationRunner options N/A args N/A fakeSetupEnvironment N/A N/A self chroot rundir nodaemon umask pidfile N/A N/A N/A N/A N/A args extend N/A chroot rundir nodaemon umask pidfile N/A N/A N/A N/A self assertEqual N/A N/A inspect getargspec N/A N/A self runner setupEnvironment N/A N/A inspect getargspec fakeSetupEnvironment N/A N/A N/A self patch UnixApplicationRunner setupEnvironment fakeSetupEnvironment N/A N/A N/A self patch UnixApplicationRunner shedPrivileges N/A N/A N/A N/A a kw None N/A N/A N/A self patch app startApplication N/A N/A N/A N/A a kw None N/A N/A N/A N/A self runner startApplication application N/A N/A N/A self assertEqual args N/A /foo/chroot /foo/rundir True 56 /foo/pidfile N/A N/A UnixApplicationRunnerRemovePID N/A N/A unittest TestCase N/A N/A 
    Tests for L{UnixApplicationRunner.removePID}.
     N/A N/A _twistd_unix None N/A N/A skip twistd unix not available test_removePID N/A N/A self N/A N/A N/A 
        L{UnixApplicationRunner.removePID} deletes the file the name of
        which is passed to it.
         N/A runner N/A UnixApplicationRunner N/A N/A path N/A N/A self mktemp N/A N/A N/A os makedirs path N/A pidfile N/A N/A N/A os path join path foo.pid N/A N/A N/A N/A file pidfile w close N/A N/A N/A runner removePID pidfile N/A N/A N/A self assertFalse N/A N/A N/A os path exists pidfile N/A test_removePIDErrors N/A N/A self N/A N/A N/A 
        Calling L{UnixApplicationRunner.removePID} with a non-existent filename logs
        an OSError.
         N/A runner N/A UnixApplicationRunner N/A N/A N/A N/A runner removePID fakepid N/A errors N/A N/A self flushLoggedErrors OSError N/A N/A N/A self assertEqual N/A len errors 1 N/A N/A N/A self assertEqual N/A N/A N/A errors N/A 0 value errno N/A errno ENOENT N/A N/A FakeNonDaemonizingReactor N/A object N/A N/A 
    A dummy reactor, providing C{beforeDaemonize} and C{afterDaemonize} methods,
    but not announcing this, and logging whether the methods have been called.

    @ivar _beforeDaemonizeCalled: if C{beforeDaemonize} has been called or not.
    @type _beforeDaemonizeCalled: C{bool}
    @ivar _afterDaemonizeCalled: if C{afterDaemonize} has been called or not.
    @type _afterDaemonizeCalled: C{bool}
     __init__ N/A N/A self N/A N/A N/A N/A self _beforeDaemonizeCalled False N/A N/A self _afterDaemonizeCalled False N/A beforeDaemonize N/A N/A self N/A N/A N/A N/A self _beforeDaemonizeCalled True N/A afterDaemonize N/A N/A self N/A N/A N/A N/A self _afterDaemonizeCalled True N/A N/A FakeDaemonizingReactor N/A FakeNonDaemonizingReactor N/A N/A 
    A dummy reactor, providing C{beforeDaemonize} and C{afterDaemonize} methods,
    announcing this, and logging whether the methods have been called.
     N/A N/A implements IReactorDaemonize N/A ReactorDaemonizationTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{_twistd_unix.daemonize} and L{IReactorDaemonize}.
     N/A N/A _twistd_unix None N/A N/A skip twistd unix not available test_daemonizationHooksCalled N/A N/A self N/A N/A N/A 
        L{_twistd_unix.daemonize} indeed calls
        L{IReactorDaemonize.beforeDaemonize} and
        L{IReactorDaemonize.afterDaemonize} if the reactor implements
        L{IReactorDaemonize}.
         N/A reactor N/A FakeDaemonizingReactor N/A os N/A MockOS N/A N/A N/A _twistd_unix daemonize reactor os N/A N/A N/A self assertTrue N/A reactor _beforeDaemonizeCalled N/A N/A N/A self assertTrue N/A reactor _afterDaemonizeCalled N/A test_daemonizationHooksNotCalled N/A N/A self N/A N/A N/A 
        L{_twistd_unix.daemonize} does NOT call
        L{IReactorDaemonize.beforeDaemonize} or
        L{IReactorDaemonize.afterDaemonize} if the reactor does NOT
        implement L{IReactorDaemonize}.
         N/A reactor N/A FakeNonDaemonizingReactor N/A os N/A MockOS N/A N/A N/A _twistd_unix daemonize reactor os N/A N/A N/A self assertFalse N/A reactor _beforeDaemonizeCalled N/A N/A N/A self assertFalse N/A reactor _afterDaemonizeCalled N/A N/A DummyReactor N/A object N/A N/A 
    A dummy reactor, only providing a C{run} method and checking that it
    has been called.

    @ivar called: if C{run} has been called or not.
    @type called: C{bool}
     N/A called False run N/A N/A self N/A N/A N/A 
        A fake run method, checking that it's been called one and only time.
         N/A N/A self called N/A N/A N/A RuntimeError Already called N/A N/A self called True N/A N/A AppProfilingTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for L{app.AppProfiler}.
     test_profile N/A N/A self N/A N/A N/A 
        L{app.ProfileRunner.run} should call the C{run} method of the reactor
        and save profile data in the specified file.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler profile N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A N/A N/A profiler run reactor N/A N/A N/A self assertTrue N/A reactor called N/A data N/A N/A N/A file N/A config N/A profile read N/A N/A N/A self assertIn DummyReactor.run data N/A N/A N/A self assertIn function calls data N/A N/A N/A profile None N/A N/A N/A test_profile skip profile module not available _testStats N/A N/A self statsClass profile N/A N/A N/A out N/A N/A StringIO StringIO N/A stdout N/A N/A self patch sys stdout out N/A stats N/A statsClass profile N/A N/A N/A stats print_stats N/A N/A N/A stdout restore N/A data N/A N/A out getvalue N/A N/A N/A self assertIn function calls data N/A N/A N/A self assertIn (run) data N/A test_profileSaveStats N/A N/A self N/A N/A N/A 
        With the C{savestats} option specified, L{app.ProfileRunner.run}
        should save the raw stats object instead of a summary output.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler profile N/A N/A config N/A savestats True N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A N/A N/A profiler run reactor N/A N/A N/A self assertTrue N/A reactor called N/A N/A N/A self _testStats N/A pstats Stats N/A config N/A profile N/A N/A N/A profile None N/A N/A N/A test_profileSaveStats skip profile module not available test_withoutProfile N/A N/A self N/A N/A N/A 
        When the C{profile} module is not present, L{app.ProfilerRunner.run}
        should raise a C{SystemExit} exception.
         N/A savedModules N/A N/A N/A sys modules copy N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profiler profile N/A profiler N/A N/A app AppProfiler config N/A N/A N/A sys modules N/A profile None N/A N/A N/A N/A N/A self assertRaises SystemExit N/A profiler run None N/A N/A N/A N/A N/A sys modules clear N/A N/A N/A N/A sys modules update savedModules N/A test_profilePrintStatsError N/A N/A self N/A N/A N/A 
        When an error happens during the print of the stats, C{sys.stdout}
        should be restored to its initial value.
         ErroneousProfile N/A N/A profile Profile N/A print_stats N/A N/A self N/A N/A N/A N/A RuntimeError Boom N/A N/A N/A N/A N/A self patch profile Profile ErroneousProfile N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler profile N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A oldStdout N/A sys stdout N/A N/A N/A self assertRaises RuntimeError N/A profiler run reactor N/A N/A N/A self assertIdentical N/A sys stdout oldStdout N/A N/A N/A profile None N/A N/A N/A test_profilePrintStatsError skip profile module not available test_hotshot N/A N/A self N/A N/A N/A 
        L{app.HotshotRunner.run} should call the C{run} method of the reactor
        and save profile data in the specified file.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler hotshot N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A N/A N/A profiler run reactor N/A N/A N/A self assertTrue N/A reactor called N/A data N/A N/A N/A file N/A config N/A profile read N/A N/A N/A self assertIn run data N/A N/A N/A self assertIn function calls data N/A N/A N/A hotshot None N/A N/A N/A test_hotshot skip hotshot module not available test_hotshotSaveStats N/A N/A self N/A N/A N/A 
        With the C{savestats} option specified, L{app.HotshotRunner.run} should
        save the raw stats object instead of a summary output.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler hotshot N/A N/A config N/A savestats True N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A N/A N/A profiler run reactor N/A N/A N/A self assertTrue N/A reactor called N/A N/A N/A self _testStats N/A N/A hotshot stats load N/A config N/A profile N/A N/A N/A hotshot None N/A N/A N/A test_hotshotSaveStats skip hotshot module not available test_withoutHotshot N/A N/A self N/A N/A N/A 
        When the C{hotshot} module is not present, L{app.HotshotRunner.run}
        should raise a C{SystemExit} exception and log the C{ImportError}.
         N/A savedModules N/A N/A N/A sys modules copy N/A N/A N/A sys modules N/A hotshot None N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profiler hotshot N/A profiler N/A N/A app AppProfiler config N/A N/A N/A N/A N/A self assertRaises SystemExit N/A profiler run None N/A N/A N/A N/A N/A sys modules clear N/A N/A N/A N/A sys modules update savedModules N/A test_hotshotPrintStatsError N/A N/A self N/A N/A N/A 
        When an error happens while printing the stats, C{sys.stdout}
        should be restored to its initial value.
         ErroneousStats N/A N/A pstats Stats N/A print_stats N/A N/A self N/A N/A N/A N/A RuntimeError Boom N/A N/A N/A N/A N/A self patch pstats Stats ErroneousStats N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler hotshot N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A oldStdout N/A sys stdout N/A N/A N/A self assertRaises RuntimeError N/A profiler run reactor N/A N/A N/A self assertIdentical N/A sys stdout oldStdout N/A N/A N/A hotshot None N/A N/A N/A test_hotshotPrintStatsError skip hotshot module not available test_cProfile N/A N/A self N/A N/A N/A 
        L{app.CProfileRunner.run} should call the C{run} method of the
        reactor and save profile data in the specified file.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler cProfile N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A N/A N/A profiler run reactor N/A N/A N/A self assertTrue N/A reactor called N/A data N/A N/A N/A file N/A config N/A profile read N/A N/A N/A self assertIn run data N/A N/A N/A self assertIn function calls data N/A N/A N/A cProfile None N/A N/A N/A test_cProfile skip cProfile module not available test_cProfileSaveStats N/A N/A self N/A N/A N/A 
        With the C{savestats} option specified,
        L{app.CProfileRunner.run} should save the raw stats object
        instead of a summary output.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler cProfile N/A N/A config N/A savestats True N/A profiler N/A N/A app AppProfiler config N/A reactor N/A DummyReactor N/A N/A N/A profiler run reactor N/A N/A N/A self assertTrue N/A reactor called N/A N/A N/A self _testStats N/A pstats Stats N/A config N/A profile N/A N/A N/A cProfile None N/A N/A N/A test_cProfileSaveStats skip cProfile module not available test_withoutCProfile N/A N/A self N/A N/A N/A 
        When the C{cProfile} module is not present,
        L{app.CProfileRunner.run} should raise a C{SystemExit}
        exception and log the C{ImportError}.
         N/A savedModules N/A N/A N/A sys modules copy N/A N/A N/A sys modules N/A cProfile None N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profiler cProfile N/A profiler N/A N/A app AppProfiler config N/A N/A N/A N/A N/A self assertRaises SystemExit N/A profiler run None N/A N/A N/A N/A N/A sys modules clear N/A N/A N/A N/A sys modules update savedModules N/A test_unknownProfiler N/A N/A self N/A N/A N/A 
        Check that L{app.AppProfiler} raises L{SystemExit} when given an
        unknown profiler name.
         N/A config N/A N/A twistd ServerOptions N/A N/A config N/A profile N/A N/A self mktemp N/A N/A config N/A profiler foobar N/A error N/A N/A self assertRaises SystemExit N/A app AppProfiler config N/A N/A N/A self assertEqual N/A str error Unsupported profiler name: foobar N/A test_defaultProfiler N/A N/A self N/A N/A N/A 
        L{app.Profiler} defaults to the hotshot profiler if not specified.
         N/A profiler N/A N/A app AppProfiler N/A N/A N/A N/A self assertEqual N/A profiler profiler hotshot N/A test_profilerNameCaseInsentive N/A N/A self N/A N/A N/A 
        The case of the profiler name passed to L{app.AppProfiler} is not
        relevant.
         N/A profiler N/A N/A app AppProfiler N/A profiler HotShot N/A N/A N/A self assertEqual N/A profiler profiler hotshot N/A N/A _patchFileLogObserver N/A N/A patch N/A N/A N/A 
    Patch L{log.FileLogObserver} to record every call and keep a reference to
    the passed log file for tests.

    @param patch: a callback for patching (usually L{unittest.TestCase.patch}).

    @return: the list that keeps track of the log files.
    @rtype: C{list}
     N/A logFiles N/A N/A oldFileLobObserver N/A log FileLogObserver FileLogObserver N/A N/A logFile N/A N/A N/A N/A N/A logFiles append logFile N/A N/A oldFileLobObserver logFile N/A N/A N/A patch log FileLogObserver FileLogObserver N/A logFiles N/A _setupSyslog N/A N/A testCase N/A N/A N/A 
    Make fake syslog, and return list to which prefix and then log
    messages will be appended if it is used.
     N/A logMessages N/A fakesyslogobserver N/A object N/A __init__ N/A N/A self prefix N/A N/A N/A N/A N/A logMessages append prefix N/A emit N/A N/A self eventDict N/A N/A N/A N/A N/A logMessages append eventDict N/A N/A N/A N/A N/A testCase patch syslog SyslogObserver fakesyslogobserver N/A logMessages N/A AppLoggerTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for L{app.AppLogger}.

    @ivar observers: list of observers installed during the tests.
    @type observers: C{list}
     setUp N/A N/A self N/A N/A N/A 
        Override L{log.addObserver} so that we can trace the observers
        installed in C{self.observers}.
         N/A N/A self observers N/A startLoggingWithObserver N/A N/A observer N/A N/A N/A N/A N/A N/A self observers append observer N/A N/A N/A log addObserver observer N/A N/A N/A N/A self patch log startLoggingWithObserver startLoggingWithObserver N/A tearDown N/A N/A self N/A N/A N/A 
        Remove all installed observers.
         N/A observer N/A self observers N/A N/A N/A N/A log removeObserver observer N/A _checkObserver N/A N/A self logs N/A N/A N/A 
        Ensure that initial C{twistd} logs are written to the given list.

        @type logs: C{list}
        @param logs: The list whose C{append} method was specified as the
            initial log observer.
         N/A N/A N/A self assertEqual N/A self observers N/A N/A logs append N/A N/A N/A self assertIn starting up N/A N/A N/A logs N/A 0 N/A message N/A 0 N/A N/A N/A self assertIn reactor class N/A N/A N/A logs N/A 1 N/A message N/A 0 N/A test_start N/A N/A self N/A N/A N/A 
        L{app.AppLogger.start} calls L{log.addObserver}, and then writes some
        messages about twistd and the reactor.
         N/A logger N/A N/A app AppLogger N/A N/A observer N/A N/A N/A logger _getLogObserver N/A N/A N/A N/A N/A observer append N/A N/A N/A logger start N/A Componentized N/A N/A N/A self _checkObserver observer N/A test_startUsesApplicationLogObserver N/A N/A self N/A N/A N/A 
        When the L{ILogObserver} component is available on the application,
        that object will be used as the log observer instead of constructing a
        new one.
         N/A application N/A Componentized N/A logs N/A N/A N/A N/A application setComponent ILogObserver N/A logs append N/A logger N/A N/A app AppLogger N/A N/A N/A N/A logger start application N/A N/A N/A self _checkObserver logs N/A _setupConfiguredLogger N/A N/A self application extraLogArgs appLogger N/A N/A N/A app AppLogger N/A N/A 
        Set up an AppLogger which exercises the C{logger} configuration option.

        @type application: L{Componentized}
        @param application: The L{Application} object to pass to
            L{app.AppLogger.start}.
        @type extraLogArgs: C{dict}
        @param extraLogArgs: extra values to pass to AppLogger.
        @type appLogger: L{AppLogger} class, or a subclass
        @param appLogger: factory for L{AppLogger} instances.

        @rtype: C{list}
        @return: The logs accumulated by the log observer.
         N/A logs N/A N/A logArgs N/A logger N/A N/A N/A N/A N/A logs append N/A N/A N/A logArgs update extraLogArgs N/A logger N/A appLogger logArgs N/A N/A N/A logger start application N/A logs N/A test_startUsesConfiguredLogObserver N/A N/A self N/A N/A N/A 
        When the C{logger} key is specified in the configuration dictionary
        (i.e., when C{--logger} is passed to twistd), the initial log observer
        will be the log observer returned from the callable which the value
        refers to in FQPN form.
         N/A application N/A Componentized N/A N/A N/A self _checkObserver N/A N/A self _setupConfiguredLogger application N/A test_configuredLogObserverBeatsComponent N/A N/A self N/A N/A N/A 
        C{--logger} takes precedence over a ILogObserver component set on
        Application.
         N/A nonlogs N/A N/A application N/A Componentized N/A N/A N/A application setComponent ILogObserver N/A nonlogs append N/A N/A N/A self _checkObserver N/A N/A self _setupConfiguredLogger application N/A N/A N/A self assertEqual nonlogs N/A N/A test_configuredLogObserverBeatsSyslog N/A N/A self N/A N/A N/A 
        C{--logger} takes precedence over a C{--syslog} command line
        argument.
         N/A logs N/A _setupSyslog self N/A application N/A Componentized N/A N/A N/A self _checkObserver N/A N/A self _setupConfiguredLogger application N/A syslog True UnixAppLogger N/A N/A N/A self assertEqual logs N/A N/A N/A N/A N/A _twistd_unix None N/A syslog None N/A N/A N/A test_configuredLogObserverBeatsSyslog skip Not on POSIX, or syslog not available. test_configuredLogObserverBeatsLogfile N/A N/A self N/A N/A N/A 
        C{--logger} takes precedence over a C{--logfile} command line
        argument.
         N/A application N/A Componentized N/A path N/A N/A self mktemp N/A N/A N/A self _checkObserver N/A N/A self _setupConfiguredLogger application N/A logfile path N/A N/A N/A self assertFalse N/A N/A N/A os path exists path N/A test_getLogObserverStdout N/A N/A self N/A N/A N/A 
        When logfile is empty or set to C{-}, L{app.AppLogger._getLogObserver}
        returns a log observer pointing at C{sys.stdout}.
         N/A logger N/A N/A app AppLogger N/A logfile - N/A logFiles N/A _patchFileLogObserver N/A self patch N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 1 N/A N/A N/A self assertIdentical N/A logFiles N/A 0 N/A sys stdout N/A logger N/A N/A app AppLogger N/A logfile N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 2 N/A N/A N/A self assertIdentical N/A logFiles N/A 1 N/A sys stdout N/A test_getLogObserverFile N/A N/A self N/A N/A N/A 
        When passing the C{logfile} option, L{app.AppLogger._getLogObserver}
        returns a log observer pointing at the specified path.
         N/A logFiles N/A _patchFileLogObserver N/A self patch N/A filename N/A N/A self mktemp N/A logger N/A N/A app AppLogger N/A logfile filename N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 1 N/A N/A N/A self assertEqual N/A N/A logFiles N/A 0 path N/A N/A N/A os path abspath filename N/A test_stop N/A N/A self N/A N/A N/A 
        L{app.AppLogger.stop} removes the observer created in C{start}, and
        reinitialize its C{_observer} so that if C{stop} is called several
        times it doesn't break.
         N/A removed N/A N/A observer N/A object remove N/A N/A observer N/A N/A N/A N/A N/A removed append observer N/A N/A N/A N/A self patch log removeObserver remove N/A logger N/A N/A app AppLogger N/A N/A N/A logger _observer observer N/A N/A N/A logger stop N/A N/A N/A self assertEqual removed N/A observer N/A N/A N/A logger stop N/A N/A N/A self assertEqual removed N/A observer N/A N/A N/A self assertIdentical N/A logger _observer None N/A N/A UnixAppLoggerTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for L{UnixAppLogger}.

    @ivar signals: list of signal handlers installed.
    @type signals: C{list}
     N/A N/A _twistd_unix None N/A N/A skip twistd unix not available setUp N/A N/A self N/A N/A N/A 
        Fake C{signal.signal} for not installing the handlers but saving them
        in C{self.signals}.
         N/A N/A self signals N/A fakeSignal N/A N/A sig f N/A N/A N/A N/A N/A N/A self signals append N/A sig f N/A N/A N/A N/A self patch signal signal fakeSignal N/A test_getLogObserverStdout N/A N/A self N/A N/A N/A 
        When non-daemonized and C{logfile} is empty or set to C{-},
        L{UnixAppLogger._getLogObserver} returns a log observer pointing at
        C{sys.stdout}.
         N/A logFiles N/A _patchFileLogObserver N/A self patch N/A logger N/A UnixAppLogger N/A logfile nodaemon - True N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 1 N/A N/A N/A self assertIdentical N/A logFiles N/A 0 N/A sys stdout N/A logger N/A UnixAppLogger N/A logfile nodaemon True N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 2 N/A N/A N/A self assertIdentical N/A logFiles N/A 1 N/A sys stdout N/A test_getLogObserverStdoutDaemon N/A N/A self N/A N/A N/A 
        When daemonized and C{logfile} is set to C{-},
        L{UnixAppLogger._getLogObserver} raises C{SystemExit}.
         N/A logger N/A UnixAppLogger N/A logfile nodaemon - False N/A error N/A N/A self assertRaises SystemExit N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A str error Daemons cannot log to stdout, exiting! N/A test_getLogObserverFile N/A N/A self N/A N/A N/A 
        When C{logfile} contains a file name, L{app.AppLogger._getLogObserver}
        returns a log observer pointing at the specified path, and a signal
        handler rotating the log is installed.
         N/A logFiles N/A _patchFileLogObserver N/A self patch N/A filename N/A N/A self mktemp N/A logger N/A UnixAppLogger N/A logfile filename N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 1 N/A N/A N/A self assertEqual N/A N/A logFiles N/A 0 path N/A N/A N/A os path abspath filename N/A N/A N/A self assertEqual N/A len N/A self signals 1 N/A N/A N/A self assertEqual N/A N/A N/A self signals N/A 0 N/A 0 N/A signal SIGUSR1 N/A d N/A Deferred rotate N/A N/A N/A N/A N/A N/A N/A d callback None N/A N/A N/A N/A logFiles N/A 0 rotate rotate N/A rotateLog N/A N/A N/A self signals N/A 0 N/A 1 N/A N/A rotateLog None None N/A d N/A test_getLogObserverDontOverrideSignalHandler N/A N/A self N/A N/A N/A 
        If a signal handler is already installed,
        L{UnixAppLogger._getLogObserver} doesn't override it.
         fakeGetSignal N/A N/A sig N/A N/A N/A N/A N/A self assertEqual sig N/A signal SIGUSR1 N/A N/A object N/A N/A N/A N/A self patch signal getsignal fakeGetSignal N/A filename N/A N/A self mktemp N/A logger N/A UnixAppLogger N/A logfile filename N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A self signals N/A N/A test_getLogObserverDefaultFile N/A N/A self N/A N/A N/A 
        When daemonized and C{logfile} is empty, the observer returned by
        L{UnixAppLogger._getLogObserver} points at C{twistd.log} in the current
        directory.
         N/A logFiles N/A _patchFileLogObserver N/A self patch N/A logger N/A UnixAppLogger N/A logfile nodaemon False N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual N/A len logFiles 1 N/A N/A N/A self assertEqual N/A N/A logFiles N/A 0 path N/A N/A N/A os path abspath twistd.log N/A test_getLogObserverSyslog N/A N/A self N/A N/A N/A 
        If C{syslog} is set to C{True}, L{UnixAppLogger._getLogObserver} starts
        a L{syslog.SyslogObserver} with given C{prefix}.
         N/A logs N/A _setupSyslog self N/A logger N/A UnixAppLogger N/A syslog prefix True test-prefix N/A observer N/A N/A logger _getLogObserver N/A N/A N/A self assertEqual logs N/A test-prefix N/A N/A observer N/A a b N/A N/A N/A self assertEqual logs N/A test-prefix N/A a b N/A N/A N/A syslog None N/A N/A N/A test_getLogObserverSyslog skip Syslog not available N/A