Module ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Yield NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Dict Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad ImportFrom alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad 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 Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults NameLoad keyword NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list Expr Call NameLoad ListLoad NameLoad Expr Call NameLoad TupleLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad ListLoad Str NameLoad Expr Call NameLoad TupleLoad Str NameLoad Expr Call NameLoad ListLoad Str Str NameLoad Expr Call NameLoad TupleLoad Str Str NameLoad Expr Call NameLoad ListLoad Dict Str Str Str Str NameLoad Expr Call NameLoad TupleLoad Dict Str Str Str Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Dict Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Yield NameLoad decorator_list TryExcept body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad ListLoad NameLoad Expr Call NameLoad ListLoad Str Str Num Num Str NameLoad Expr Call NameLoad TupleLoad NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Num NameLoad Expr Call NameLoad Dict Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias Import alias With Call NameLoad NameStore body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body Expr Call NameLoad NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list With Call NameLoad NameStore body Expr Call NameLoad NameLoad NameLoad With Call NameLoad NameStore body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad With Call NameLoad NameStore body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults NameLoad keyword NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad ClassDef bases NameLoad body Pass decorator_list Expr Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Num NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad TryExcept body While NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Num body Expr Yield NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Expr Yield NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Num Assign NameStore ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias alias Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Raise Call NameLoad Str decorator_list Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad TryExcept body While NameLoad body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For NameStore NameLoad body Pass decorator_list Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr decorator_list Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Assign NameStore Dict AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Str NameLoad NameLoad Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For NameStore NameLoad body Pass decorator_list Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Num NameLoad decorator_list Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call NameLoad NameLoad NameLoad NameLoad keyword TupleLoad NameLoad Expr Call NameLoad NameLoad Assign NameStore Dict AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword TupleLoad Str Str NameLoad Expr Call NameLoad NameLoad Assign NameStore ListLoad Str NameLoad Str Str Str NameLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Str
N/A __future__ absolute_import unicode_literals N/A sys N/A os N/A unittest N/A tempfile N/A shutil contextlib contextmanager builtins range next open six string_types N/A sijax_path N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A N/A N/A N/A sys path append sijax_path sijax Sijax sijax.response BaseResponse StreamingIframeResponse sijax.exception SijaxError sijax.plugin.comet register_comet_callback register_comet_object CometResponse sijax.plugin.upload register_upload_callback UploadResponse sijax.helper init_static_path temporary_dir N/A N/A N/A args kwargs N/A N/A path N/A N/A tempfile mkdtemp N/A N/A N/A N/A path N/A N/A N/A N/A shutil rmtree path N/A contextmanager SijaxMainTestCase N/A N/A unittest TestCase N/A test_changing_incoming_data_works N/A N/A self N/A N/A N/A inst N/A Sijax N/A N/A N/A self assertTrue N/A N/A N/A inst get_data N/A N/A data N/A key value N/A N/A N/A inst set_data data N/A N/A N/A self assertTrue N/A N/A N/A inst get_data data N/A data N/A key another value one N/A N/A N/A self assertTrue N/A N/A N/A inst get_data N/A key value N/A N/A N/A inst set_data data N/A N/A N/A self assertTrue N/A N/A N/A inst get_data data N/A test_detecting_sijax_requests_works N/A N/A self N/A N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A self assertFalse N/A inst is_sijax_request N/A N/A N/A self assertTrue N/A N/A inst requested_function None N/A N/A N/A inst set_data N/A key value N/A N/A N/A self assertFalse N/A inst is_sijax_request N/A N/A N/A self assertTrue N/A N/A inst requested_function None N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST function N/A N/A N/A self assertFalse N/A inst is_sijax_request N/A N/A N/A self assertEqual N/A inst requested_function function N/A N/A N/A inst set_data N/A N/A cls PARAM_ARGS [] N/A N/A N/A self assertFalse N/A inst is_sijax_request N/A N/A N/A self assertTrue N/A N/A inst requested_function None N/A N/A N/A self assertEqual N/A N/A inst request_args N/A N/A N/A inst set_data N/A N/A cls PARAM_ARGS ["invalid_json": here N/A N/A N/A self assertFalse N/A inst is_sijax_request N/A N/A N/A self assertTrue N/A N/A inst requested_function None N/A N/A N/A self assertEqual N/A N/A inst request_args N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS function ["arg1", 5] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A self assertEqual function N/A inst requested_function N/A N/A N/A self assertEqual N/A arg1 5 N/A inst request_args N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS func2 [28, 5] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A self assertEqual func2 N/A inst requested_function N/A N/A N/A self assertEqual N/A 28 5 N/A inst request_args N/A test_events_have_default_handlers N/A N/A self N/A N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A events N/A N/A getattr cls attr N/A attr N/A dir cls N/A N/A attr startswith EVENT_ N/A event events N/A N/A N/A N/A self assertTrue N/A N/A inst has_event event N/A No handler for %s event N/A test_registering_custom_events_works N/A N/A self N/A N/A N/A inst N/A Sijax N/A event_name my_event N/A event_callback N/A N/A N/A obj_response N/A N/A N/A obj_response alert Event N/A N/A N/A self assertFalse N/A N/A inst has_event event_name Custom event registered N/A N/A N/A inst register_event event_name event_callback N/A N/A N/A self assertTrue N/A N/A inst has_event event_name Failed to register event N/A test_executing_regular_callbacks_works N/A N/A self N/A N/A N/A calls_history N/A N/A call_args_history N/A event_before N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response BaseResponse N/A N/A N/A calls_history append before N/A N/A N/A obj_response script javascript here.. N/A event_after N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response BaseResponse N/A N/A N/A calls_history append after N/A N/A N/A obj_response css #element backgroundColor red N/A callback_main N/A N/A obj_response arg1 arg2 N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response BaseResponse N/A N/A N/A calls_history append main N/A N/A N/A call_args_history append arg1 N/A N/A N/A call_args_history append arg2 N/A N/A N/A obj_response alert alert from main N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_event N/A cls EVENT_BEFORE_PROCESSING event_before N/A N/A N/A inst register_event N/A cls EVENT_AFTER_PROCESSING event_after N/A call_args N/A arg1 15 N/A response N/A N/A inst execute_callback call_args callback callback_main N/A N/A N/A self assertEqual N/A before main after calls_history N/A N/A N/A self assertEqual call_args call_args_history N/A N/A N/A self assertTrue N/A isinstance response string_types sijax.helper json N/A N/A N/A commands N/A N/A json loads response N/A N/A N/A N/A N/A N/A self fail Invalid JSON response! N/A N/A N/A N/A self assertTrue N/A isinstance commands list N/A commands_history N/A N/A cmd_params commands N/A N/A N/A N/A self assertTrue N/A isinstance cmd_params dict N/A N/A N/A self assertTrue N/A type cmd_params Unknown command type! N/A N/A N/A commands_history append N/A cmd_params N/A type N/A N/A N/A self assertEqual N/A script alert css commands_history N/A test_bad_callback_objects_raise_exception N/A N/A self N/A N/A N/A inst N/A Sijax N/A N/A N/A N/A N/A inst execute_callback callback non-callable object args N/A N/A N/A N/A self fail SijaxError not raised when bad callback was given! N/A N/A N/A SijaxError N/A N/A N/A test_get_js_fails_with_missing_request_uri N/A N/A self N/A N/A N/A inst N/A Sijax N/A N/A N/A N/A N/A inst get_js N/A N/A N/A self fail N/A N/A N/A SijaxError N/A N/A N/A test_changing_uris_results_in_a_differnt_js_output N/A N/A self N/A N/A N/A inst N/A Sijax N/A req_uri http://localhost:8080/submit_here N/A json_uri http://localhost:8080/json2.js N/A N/A N/A inst set_request_uri req_uri N/A js N/A N/A inst get_js N/A N/A N/A self assertTrue N/A N/A Sijax.setRequestUri("%s"); req_uri js N/A N/A N/A self assertFalse N/A Sijax.setJsonUri js N/A N/A N/A inst set_json_uri json_uri N/A js N/A N/A inst get_js N/A N/A N/A self assertTrue N/A N/A Sijax.setRequestUri("%s"); req_uri js N/A N/A N/A self assertTrue N/A N/A Sijax.setJsonUri("%s"); json_uri js N/A test_process_request_throws_exception_when_called_for_non_sijax_requests N/A N/A self N/A N/A N/A inst N/A Sijax N/A N/A N/A N/A N/A inst process_request N/A N/A N/A self fail Process request got executed for a non-sijax request! N/A N/A N/A SijaxError N/A N/A N/A test_process_request_calls_invalid_request_event_for_invalid_requests N/A N/A self N/A N/A sijax.helper json N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func ["arg1", 12] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A self assertEqual my_func N/A inst requested_function N/A N/A N/A self assertEqual N/A arg1 12 N/A inst request_args N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response string_types N/A N/A N/A commands N/A N/A json loads response N/A N/A N/A N/A N/A N/A self fail Invalid JSON generated! N/A N/A N/A N/A self assertTrue N/A isinstance commands list N/A N/A N/A self assertEqual 1 N/A len commands N/A command_data N/A N/A commands pop 0 N/A N/A N/A self assertTrue N/A type command_data N/A N/A N/A self assertEqual alert N/A command_data N/A type N/A test_process_request_calls_invalid_call_event_for_invalid_calls N/A N/A self N/A N/A types FunctionType sijax.helper json N/A call_history N/A my_callback N/A N/A obj_response arg1 arg2 N/A N/A N/A N/A N/A call_history append call ok N/A my_callback_with_defaults N/A N/A obj_response arg1 arg2 N/A 138 15 N/A N/A N/A N/A call_history append defaults ok N/A my_callback_raising_TypeError N/A N/A obj_response N/A N/A N/A N/A TypeError this should be re-raised by Sijax N/A my_callback_raising_TypeError2 N/A N/A obj_response N/A N/A inner N/A N/A N/A N/A N/A N/A TypeError this should be re-raised by Sijax N/A N/A N/A inner N/A invalid_call N/A N/A obj_response failed_callback N/A N/A N/A N/A N/A self assertTrue N/A isinstance failed_callback FunctionType N/A N/A N/A call_history append N/A invalid %s N/A failed_callback __name__ N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_callback my_func my_callback N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func ["arg1", 12] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A self assertEqual my_func N/A inst requested_function N/A N/A N/A self assertEqual N/A arg1 12 N/A inst request_args N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response string_types N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func ["arg1"] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A self assertEqual my_func N/A inst requested_function N/A N/A N/A self assertEqual N/A arg1 N/A inst request_args N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response string_types N/A N/A N/A commands N/A N/A json loads response N/A N/A N/A N/A N/A N/A self fail Invalid JSON generated! N/A N/A N/A N/A self assertTrue N/A isinstance commands list N/A N/A N/A self assertEqual 1 N/A len commands N/A command_data N/A N/A commands pop 0 N/A N/A N/A self assertTrue N/A type command_data N/A N/A N/A self assertEqual alert N/A command_data N/A type N/A N/A N/A inst register_event N/A cls EVENT_INVALID_CALL invalid_call N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func [] N/A N/A N/A self assertEqual my_func N/A inst requested_function N/A N/A N/A self assertEqual N/A N/A inst request_args N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response string_types N/A N/A N/A inst register_callback my_func my_callback_with_defaults N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response string_types N/A N/A N/A inst register_callback my_func my_callback_raising_TypeError N/A N/A N/A N/A N/A inst process_request N/A N/A N/A TypeError N/A N/A N/A N/A call_history append TypeError N/A N/A N/A inst register_callback my_func my_callback_raising_TypeError2 N/A N/A N/A N/A N/A inst process_request N/A N/A N/A TypeError N/A N/A N/A N/A call_history append TypeError2 N/A expected N/A call ok invalid my_callback defaults ok TypeError TypeError2 N/A N/A N/A self assertEqual expected call_history N/A test_new_callbacks_override_old_during_registering N/A N/A self N/A N/A N/A call_history N/A callback_one N/A N/A obj_response N/A N/A N/A N/A N/A call_history append one N/A callback_two N/A N/A obj_response N/A N/A N/A N/A N/A call_history append two N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst register_callback my_func callback_one N/A N/A N/A inst process_request N/A N/A N/A inst register_callback my_func callback_two N/A N/A N/A inst process_request N/A N/A N/A self assertEqual N/A one two call_history N/A test_mass_registering_from_a_class_works N/A N/A self N/A N/A N/A call_history N/A SijaxHandler N/A object N/A callback_one N/A N/A obj_response N/A N/A N/A N/A N/A call_history append one N/A staticmethod callback_two N/A N/A obj_response N/A N/A N/A N/A N/A call_history append two N/A staticmethod callback_three N/A N/A cls obj_response N/A N/A N/A N/A N/A call_history append three N/A classmethod N/A N/A inst N/A Sijax N/A N/A N/A inst register_object SijaxHandler N/A cls N/A inst __class__ N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback_one [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback_two [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback_three [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A self assertEqual N/A one two three call_history N/A test_mass_registering_from_an_object_works N/A N/A self N/A N/A N/A call_history N/A SijaxHandler N/A object N/A callback_one N/A N/A self obj_response N/A N/A N/A N/A N/A call_history append one N/A callback_two N/A N/A self obj_response N/A N/A N/A N/A N/A call_history append two N/A N/A N/A inst N/A Sijax N/A N/A N/A inst register_object N/A SijaxHandler N/A cls N/A inst __class__ N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback_one [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback_two [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A self assertEqual N/A one two call_history N/A test_the_response_class_could_be_changed_during_registration N/A N/A self N/A N/A N/A call_history N/A CustomResponse N/A BaseResponse N/A N/A N/A my_callback N/A N/A obj_response N/A N/A N/A N/A N/A call_history append regular N/A N/A N/A self assertFalse N/A isinstance obj_response CustomResponse N/A N/A N/A self assertTrue N/A isinstance obj_response BaseResponse N/A my_custom_callback N/A N/A obj_response N/A N/A N/A N/A N/A call_history append custom N/A N/A N/A self assertTrue N/A isinstance obj_response CustomResponse N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_callback my_func my_callback N/A params_custom N/A N/A cls PARAM_RESPONSE_CLASS CustomResponse N/A N/A N/A inst register_callback my_func_custom my_custom_callback params_custom N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func_custom [] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A self assertEqual N/A regular custom call_history N/A test_args_extra_works_properly N/A N/A self N/A N/A N/A call_history N/A callback N/A N/A obj_response arg1_custom arg2_custom arg_regular N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response BaseResponse N/A N/A N/A call_history append arg1_custom N/A N/A N/A call_history append arg2_custom N/A N/A N/A call_history append arg_regular N/A callback_basic N/A N/A obj_response arg_regular N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response BaseResponse N/A N/A N/A call_history append arg_regular N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_callback callback callback args_extra N/A one two N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback ["regular"] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A N/A N/A inst register_callback callback callback_basic N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback ["reg2"] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A inst process_request N/A call_history_expected N/A one two regular reg2 N/A N/A N/A self assertEqual call_history_expected call_history N/A test_args_extra_expects_a_list_or_a_tuple N/A N/A self N/A N/A N/A inst N/A Sijax try_args N/A N/A args_extra should_succeed N/A N/A N/A success False N/A N/A N/A N/A N/A inst register_callback name N/A N/A N/A r N/A r args_extra args_extra N/A success True N/A N/A N/A SijaxError N/A N/A N/A N/A N/A self assertEqual should_succeed success N/A Failure for %s N/A repr args_extra N/A N/A N/A try_args N/A True N/A N/A try_args N/A True N/A N/A try_args None True N/A N/A try_args N/A one item True N/A N/A try_args N/A one item True N/A N/A try_args N/A one two True N/A N/A try_args N/A one two True N/A N/A try_args N/A N/A dictionary the in list True N/A N/A try_args N/A N/A dictionary the in tuple True N/A N/A try_args string False N/A N/A try_args True False N/A N/A try_args False False N/A N/A try_args N/A dictionary here False N/A test_regular_functions_that_yield_are_not_allowed N/A N/A self N/A N/A N/A inst N/A Sijax callback N/A N/A obj_response N/A N/A N/A N/A obj_response N/A N/A N/A N/A N/A N/A inst execute_callback N/A callback N/A N/A N/A self fail Yielding regular function didn't raise expected exception! N/A N/A N/A SijaxError N/A N/A N/A test_response_method_call_rejects_bad_args N/A N/A self N/A N/A N/A inst N/A Sijax try_call N/A N/A args_value should_succeed N/A N/A callback N/A N/A obj_response N/A N/A N/A N/A N/A obj_response call function args_value N/A N/A success False N/A N/A N/A N/A N/A inst execute_callback N/A callback N/A success True N/A N/A N/A SijaxError N/A N/A N/A N/A N/A self assertEqual should_succeed success N/A Failure for %s N/A repr args_value N/A N/A N/A try_call None True N/A N/A try_call N/A True N/A N/A try_call N/A arg1 arg2 3 4 arg5 True N/A N/A try_call N/A True N/A N/A try_call arg1 False N/A N/A try_call 1 False N/A N/A try_call N/A dictionary here False N/A test_init_static_path_helper_works N/A N/A self N/A N/A N/A os N/A sijax N/A N/A temporary_dir static_path N/A N/A N/A init_static_path static_path N/A version_file N/A N/A N/A os path join static_path sijax_version N/A N/A N/A N/A N/A os path exists version_file N/A N/A N/A N/A self fail N/A Version file %s does not exist version_file N/A N/A open version_file fp N/A N/A N/A N/A self assertEqual N/A N/A fp read N/A sijax __version__ N/A core_js_file N/A N/A N/A os path join static_path sijax.js N/A N/A open core_js_file w fp N/A N/A N/A N/A fp write new stuff N/A N/A init_static_path static_path N/A N/A open core_js_file fp N/A N/A N/A N/A self assertEqual N/A N/A fp read new stuff N/A N/A open version_file w fp N/A N/A N/A N/A fp write another_version_string N/A new_file N/A N/A N/A os path join static_path extra-file.js N/A N/A N/A self assertFalse N/A N/A N/A os path exists new_file N/A N/A open new_file w fp N/A N/A N/A N/A fp write blah N/A N/A N/A self assertTrue N/A N/A N/A os path exists new_file N/A N/A init_static_path static_path N/A N/A open core_js_file fp N/A N/A N/A N/A self assertNotEqual N/A N/A fp read new stuff N/A N/A open version_file fp N/A N/A N/A N/A self assertEqual N/A N/A fp read N/A sijax __version__ N/A N/A N/A self assertFalse N/A N/A N/A os path exists new_file N/A test_static_path_helper_refuses_to_write_to_non_empty_paths N/A N/A self N/A N/A N/A os try_init N/A N/A path should_succeed N/A N/A N/A success False N/A N/A N/A N/A init_static_path path N/A success True N/A N/A N/A SijaxError N/A N/A N/A N/A N/A self assertEqual should_succeed success N/A N/A N/A temporary_dir static_path N/A N/A N/A try_init static_path True N/A N/A temporary_dir static_path N/A N/A N/A open N/A N/A N/A os path join static_path some.file w fp N/A N/A N/A N/A fp write blah N/A N/A try_init static_path False N/A N/A temporary_dir static_path N/A N/A N/A open N/A N/A N/A os path join static_path some.file w fp N/A N/A N/A N/A fp write blah N/A N/A open N/A N/A N/A os path join static_path sijax_version w fp N/A N/A N/A N/A fp write version_string N/A N/A try_init static_path True N/A test_response_classes_need_to_be_callable N/A N/A self N/A N/A N/A inst N/A Sijax try_response_class N/A N/A response_class should_succeed N/A N/A N/A success False N/A N/A N/A N/A N/A inst register_callback name N/A N/A N/A r N/A r response_class response_class N/A success True N/A N/A N/A SijaxError N/A N/A N/A N/A N/A self assertEqual should_succeed success N/A Failure for %s N/A repr response_class N/A N/A N/A try_response_class BaseResponse True CustomResponse N/A BaseResponse N/A N/A N/A N/A N/A try_response_class CustomResponse True response_factory N/A N/A N/A args kwargs N/A N/A N/A CustomResponse args kwargs N/A N/A N/A try_response_class response_factory True N/A N/A try_response_class None True N/A N/A try_response_class False N/A N/A try_response_class 14 False N/A N/A SijaxStreamingTestCase N/A N/A unittest TestCase N/A N/A This tests the StreamingIframeResponse functionality, which is
    used behind the Comet and Upload plugins.
     test_streaming_functions_return_generators N/A N/A self N/A N/A types GeneratorType N/A call_history N/A callback_before N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append before N/A N/A N/A obj_response html #div before html N/A callback_after N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append after N/A callback_yielding N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append yielding N/A N/A N/A obj_response alert test N/A N/A obj_response N/A N/A N/A obj_response css #div color red N/A callback_normal N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append normal N/A N/A N/A obj_response script .. javascript here.. N/A assert_generator_entries_length N/A N/A generator length N/A N/A N/A items N/A N/A N/A N/A True N/A N/A N/A N/A items append N/A next generator N/A N/A N/A StopIteration N/A N/A N/A N/A N/A self assertEqual length N/A len items N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_event N/A cls EVENT_BEFORE_PROCESSING callback_before N/A N/A N/A inst register_event N/A cls EVENT_AFTER_PROCESSING callback_after N/A options N/A N/A cls PARAM_RESPONSE_CLASS StreamingIframeResponse N/A response N/A N/A inst execute_callback N/A callback callback_yielding options N/A N/A N/A self assertTrue N/A isinstance response GeneratorType N/A N/A assert_generator_entries_length response 3 callback_before_new N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append before_new N/A i N/A range 10 N/A N/A N/A obj_response N/A i N/A range 2 N/A N/A N/A N/A obj_response alert hey N/A N/A obj_response N/A N/A N/A N/A inst register_event N/A cls EVENT_BEFORE_PROCESSING callback_before_new N/A N/A N/A inst register_event N/A cls EVENT_AFTER_PROCESSING N/A N/A N/A r N/A N/A N/A r alert this yields N/A response N/A N/A inst execute_callback N/A callback callback_normal options N/A N/A N/A self assertTrue N/A isinstance response GeneratorType N/A N/A assert_generator_entries_length response 4 N/A call_history_expected N/A before yielding after before_new normal N/A N/A N/A self assertEqual call_history_expected call_history N/A test_invalid_call_event_works N/A N/A self N/A N/A types GeneratorType FunctionType N/A call_history N/A my_callback N/A N/A obj_response arg1 arg2 N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append call ok N/A my_callback_raising_TypeError N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A TypeError this should be re-raised by Sijax N/A my_callback_raising_TypeError2 N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse inner N/A N/A N/A N/A N/A N/A TypeError this should be re-raised by Sijax N/A N/A N/A inner N/A invalid_call N/A N/A obj_response failed_callback N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A self assertTrue N/A isinstance failed_callback FunctionType N/A N/A N/A call_history append N/A invalid %s N/A failed_callback __name__ N/A exhaust_generator N/A N/A gen N/A N/A N/A N/A N/A self assertTrue N/A isinstance gen GeneratorType N/A N/A N/A True N/A N/A N/A next gen N/A N/A N/A StopIteration N/A N/A N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A options N/A N/A cls PARAM_RESPONSE_CLASS StreamingIframeResponse N/A N/A N/A inst register_event N/A cls EVENT_INVALID_CALL invalid_call N/A N/A N/A inst register_callback my_func my_callback options N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func ["arg1", 12] N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A N/A N/A self assertEqual my_func N/A inst requested_function N/A N/A N/A self assertEqual N/A arg1 12 N/A inst request_args N/A response N/A N/A inst process_request N/A N/A exhaust_generator response N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func [] N/A N/A N/A self assertEqual my_func N/A inst requested_function N/A N/A N/A self assertEqual N/A N/A inst request_args N/A response N/A N/A inst process_request N/A N/A exhaust_generator response N/A N/A N/A inst register_callback my_func my_callback_raising_TypeError options N/A N/A N/A response N/A N/A inst process_request N/A N/A exhaust_generator response N/A N/A N/A TypeError N/A N/A N/A N/A call_history append TypeError N/A N/A N/A inst register_callback my_func my_callback_raising_TypeError2 options N/A N/A N/A response N/A N/A inst process_request N/A N/A exhaust_generator response N/A N/A N/A TypeError N/A N/A N/A N/A call_history append TypeError2 N/A expected N/A call ok invalid my_callback TypeError TypeError2 N/A N/A N/A self assertEqual expected call_history N/A N/A SijaxCometTestCase N/A N/A unittest TestCase N/A N/A Exercises certain Comet specific things. Most of the functionality
    that Comet is based on is tested elsewhere (StreamingIframeResponse).
     test_registering_helper_works N/A N/A self N/A N/A types GeneratorType CustomResponse N/A CometResponse N/A N/A N/A process_request N/A N/A inst N/A N/A N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response GeneratorType N/A string response N/A N/A N/A N/A call_history N/A invalid_call N/A N/A obj_response callback N/A N/A N/A N/A N/A self fail Invalid call handler triggered! N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_event N/A cls EVENT_INVALID_CALL invalid_call N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS my_func [] my_callback N/A N/A obj_response N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response CometResponse N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append my_callback N/A N/A N/A call_history append N/A N/A type obj_response __name__ N/A N/A N/A register_comet_callback inst my_func my_callback N/A N/A process_request inst N/A params_custom N/A N/A cls PARAM_RESPONSE_CLASS CustomResponse N/A N/A register_comet_callback inst my_func my_callback params_custom N/A N/A process_request inst SijaxHandler N/A object N/A callback_one N/A N/A obj_response arg1 N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response CustomResponse N/A N/A N/A call_history append callback_one N/A N/A N/A call_history append N/A N/A type obj_response __name__ N/A N/A N/A call_history append arg1 N/A staticmethod N/A N/A N/A register_comet_object inst SijaxHandler params_custom N/A N/A N/A inst set_data N/A N/A cls PARAM_REQUEST N/A cls PARAM_ARGS callback_one [45] N/A N/A process_request inst N/A call_history_expected N/A my_callback CometResponse my_callback CustomResponse callback_one CustomResponse 45 N/A N/A N/A self assertEqual call_history_expected call_history N/A N/A SijaxUploadTestCase N/A N/A unittest TestCase N/A N/A Exercises certain Comet specific things. Most of the functionality
    that Comet is based on is tested elsewhere (StreamingIframeResponse).
     test_registering_helper_works N/A N/A self N/A N/A types GeneratorType sijax.plugin.upload func_name_by_form_id CustomResponse N/A UploadResponse N/A N/A N/A process_request N/A N/A inst N/A N/A N/A N/A N/A self assertTrue N/A inst is_sijax_request N/A response N/A N/A inst process_request N/A N/A N/A self assertTrue N/A isinstance response GeneratorType N/A string response N/A N/A N/A N/A call_history N/A invalid_call N/A N/A obj_response callback N/A N/A N/A N/A N/A self fail Invalid call handler triggered! N/A N/A inst N/A Sijax N/A cls N/A inst __class__ N/A N/A N/A inst register_event N/A cls EVENT_INVALID_CALL invalid_call my_callback N/A N/A obj_response files form_values N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response UploadResponse N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append my_callback N/A N/A N/A call_history append N/A obj_response form_id N/A N/A N/A call_history append N/A N/A type obj_response __name__ N/A N/A N/A call_history append N/A files N/A file N/A N/A N/A self assertEqual N/A form_key form_key2 value 15 form_values N/A my_callback2 N/A N/A obj_response custom_arg1 custom_arg2 form_values N/A N/A N/A N/A N/A self assertTrue N/A isinstance obj_response UploadResponse N/A N/A N/A self assertTrue N/A isinstance obj_response StreamingIframeResponse N/A N/A N/A call_history append custom_callback N/A N/A N/A call_history append N/A obj_response form_id N/A N/A N/A call_history append N/A N/A type obj_response __name__ N/A N/A N/A call_history append custom_arg1 N/A N/A N/A call_history append custom_arg2 N/A N/A N/A self assertEqual N/A form_key form_key2 value 15 form_values N/A N/A form_id my_form N/A public_callback_name N/A func_name_by_form_id form_id N/A request_args_json N/A ["%s"] form_id N/A post N/A N/A N/A post N/A N/A cls PARAM_REQUEST public_callback_name N/A N/A post N/A N/A cls PARAM_ARGS request_args_json N/A N/A post N/A form_key value N/A N/A post N/A form_key2 15 N/A N/A N/A inst set_data post N/A files N/A file passed object here N/A N/A register_upload_callback inst form_id my_callback args_extra N/A files N/A N/A process_request inst N/A params_custom N/A N/A cls PARAM_RESPONSE_CLASS CustomResponse N/A N/A register_upload_callback inst form_id my_callback2 args_extra N/A custom1 custom2 params_custom N/A N/A process_request inst N/A call_history_expected N/A my_callback form_id UploadResponse object custom_callback form_id CustomResponse custom1 custom2 N/A N/A N/A self assertEqual call_history_expected call_history N/A N/A suite N/A N/A N/A N/A N/A suite N/A N/A unittest TestSuite N/A N/A N/A suite addTest N/A N/A unittest makeSuite SijaxMainTestCase N/A N/A N/A suite addTest N/A N/A unittest makeSuite SijaxStreamingTestCase N/A N/A N/A suite addTest N/A N/A unittest makeSuite SijaxCometTestCase N/A N/A N/A suite addTest N/A N/A unittest makeSuite SijaxUploadTestCase N/A suite N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main defaultTest suite