Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Dict Str Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareGtE AttributeLoad NameLoad attr Num body Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Dict Str Dict Str Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Yield NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Dict Str Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad NameLoad NameLoad kwarg body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareGtE AttributeLoad NameLoad attr Num body Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad Expr Yield NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str NameLoad Call AttributeLoad NameLoad attr Str Str NameLoad Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad kwarg body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str ListLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str orelse Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str comprehension NameStore NameLoad Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIs SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Dict Str Str Str Dict Str Str NameLoad NameLoad Dict Str Str NameLoad NameLoad Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Dict Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Str keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad NameStore body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad With Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad NameStore body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad keyword BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore Dict Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword Num NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Str NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr Assign NameStore Str Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Dict Str Dict Str Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str NameStore body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str NameStore body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str NameStore body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Dict Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Dict Str Dict Str NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad 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 Str NameLoad 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 Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num Index Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str With Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad NameLoad body Return NameLoad orelse If CompareEq NameLoad NameLoad body Return BoolOpOr NameLoad AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str With Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num orelse Expr Call AttributeLoad NameLoad attr Assign NameStore Num If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Num Assign NameStore BinOpSub NameLoad NameLoad If CompareLt NameLoad Num body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword BinOpAdd NameLoad Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword BinOpSub NameLoad Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword BinOpAdd NameLoad Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num body Assign NameStore BoolOpOr NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BoolOpOr NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num body With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad NameLoad body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad ListLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict NameLoad Dict If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict NameLoad Dict NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Num NameLoad body With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore IfExp CompareIs NameLoad NameLoad NameLoad Str Assign NameStore Dict Str Str Str Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Dict NameLoad NameLoad body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameStore body With Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad body With Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword NameLoad keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Lambda arguments args NameParam NameParam NameParam defaults Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num decorator_list decorator_list
N/A N/A os N/A contextlib N/A mock oslo_config cfg oslo_utils importutils N/A six N/A webob.exc neutron.api extensions api_ext neutron.common config neutron context n_context neutron.manager NeutronManager neutron.plugins.common constants svc_constants neutron.tests.unit.db test_db_base_plugin_v2 N/A networking_cisco networking_cisco.plugins.cisco.common cisco_constants c_constants networking_cisco.plugins.cisco.db.device_manager hosting_device_manager_db hdm_db networking_cisco.plugins.cisco.device_manager.rpc devmgr_rpc_cfgagent_api networking_cisco.plugins.cisco.device_manager service_vm_lib networking_cisco.plugins.cisco.extensions ciscohostingdevicemanager networking_cisco.tests.unit.cisco.device_manager device_manager_test_support N/A policy_path N/A N/A N/A N/A os path abspath N/A N/A networking_cisco __path__ N/A 0 /../etc/policy.json N/A DB_DM_PLUGIN_KLASS networking_cisco.plugins.cisco.db.device_manager.hosting_device_manager_db.HostingDeviceManagerMixin N/A NN_CATEGORY N/A ciscohostingdevicemanager NETWORK_NODE_CATEGORY N/A NN_TEMPLATE_NAME N/A c_constants NETWORK_NODE_TEMPLATE N/A NS_ROUTERTYPE_NAME N/A c_constants NAMESPACE_ROUTER_TYPE N/A VM_CATEGORY N/A ciscohostingdevicemanager VM_CATEGORY N/A VM_TEMPLATE_NAME CSR1kv_template N/A VM_BOOTING_TIME 420 N/A VM_SLOT_CAPACITY 3 N/A VM_DESIRED_SLOTS_FREE 3 N/A VM_ROUTERTYPE_NAME N/A c_constants CSR1KV_ROUTER_TYPE N/A HW_CATEGORY N/A ciscohostingdevicemanager HARDWARE_CATEGORY N/A HW_TEMPLATE_NAME HW_template N/A HW_ROUTERTYPE_NAME HW_router N/A L3_ROUTER_NAT N/A svc_constants L3_ROUTER_NAT N/A DEFAULT_SERVICE_TYPES router N/A NETWORK_NODE_SERVICE_TYPES router:fwaas:vpn N/A NOOP_DEVICE_DRIVER networking_cisco.plugins.cisco.device_manager.hosting_device_drivers.noop_hd_driver.NoopHostingDeviceDriver N/A NOOP_PLUGGING_DRIVER networking_cisco.plugins.cisco.device_manager.plugging_drivers.noop_plugging_driver.NoopPluggingDriver N/A TEST_DEVICE_DRIVER NOOP_DEVICE_DRIVER N/A TEST_PLUGGING_DRIVER networking_cisco.tests.unit.cisco.device_manager.plugging_test_driver.TestPluggingDriver N/A DESCRIPTION default description N/A SHARED True N/A ACTION allow N/A ENABLED True N/A ADMIN_STATE_UP True N/A UNBOUND None N/A REQUESTER True N/A OTHER False N/A DEFAULT_CREDENTIALS_ID N/A N/A device_manager_test_support _uuid DeviceManagerTestCaseMixin N/A object N/A _create_hosting_device N/A N/A self fmt template_id management_port_id admin_state_up expected_res_status N/A None kwargs N/A N/A data N/A hosting_device N/A N/A self _get_test_hosting_device_attr template_id template_id management_port_id management_port_id admin_state_up admin_state_up kwargs N/A hd_req N/A N/A self new_create_request hosting_devices data fmt N/A N/A N/A N/A kwargs get set_context N/A tenant_id kwargs N/A N/A N/A N/A hd_req environ N/A neutron.context N/A N/A n_context Context N/A kwargs N/A tenant_id N/A hd_res N/A N/A hd_req get_response N/A self ext_api N/A expected_res_status N/A N/A N/A N/A self assertEqual expected_res_status N/A hd_res status_int N/A hd_res N/A hosting_device N/A N/A self template_id management_port_id fmt admin_state_up no_delete set_port_device_id N/A None None True False True kwargs N/A N/A N/A fmt N/A N/A fmt N/A self fmt N/A res N/A N/A self _create_hosting_device fmt template_id management_port_id admin_state_up kwargs N/A N/A N/A res status_int 400 N/A N/A N/A N/A N/A webob exc HTTPClientError code N/A res status_int N/A hosting_device N/A N/A self deserialize N/A fmt N/A self fmt res N/A N/A N/A set_port_device_id True N/A management_port_id None N/A N/A data N/A port N/A device_id device_owner N/A N/A hosting_device N/A hosting_device N/A id Nova N/A req N/A N/A self new_update_request ports data management_port_id N/A res N/A N/A self deserialize N/A self fmt N/A N/A req get_response N/A self api N/A N/A hosting_device N/A N/A no_delete N/A N/A N/A N/A self _delete hosting_devices N/A N/A hosting_device N/A hosting_device N/A id N/A N/A contextlib contextmanager _create_hosting_device_template N/A N/A self fmt name enabled host_category expected_res_status N/A None kwargs N/A N/A data N/A hosting_device_template N/A N/A self _get_test_hosting_device_template_attr name name enabled enabled host_category host_category kwargs N/A hdt_req N/A N/A self new_create_request hosting_device_templates data fmt N/A N/A N/A N/A kwargs get set_context N/A tenant_id kwargs N/A N/A N/A N/A hdt_req environ N/A neutron.context N/A N/A n_context Context N/A kwargs N/A tenant_id N/A hdt_res N/A N/A hdt_req get_response N/A self ext_api N/A expected_res_status N/A N/A N/A N/A self assertEqual expected_res_status N/A hdt_res status_int N/A hdt_res N/A hosting_device_template N/A N/A self fmt name enabled host_category no_delete N/A None device_template_1 True VM_CATEGORY False kwargs N/A N/A N/A fmt N/A N/A fmt N/A self fmt N/A res N/A N/A self _create_hosting_device_template fmt name enabled host_category kwargs N/A N/A N/A res status_int 400 N/A N/A N/A N/A N/A webob exc HTTPClientError code N/A res status_int N/A hd_template N/A N/A self deserialize N/A fmt N/A self fmt res N/A N/A hd_template N/A N/A no_delete N/A N/A N/A N/A self _delete hosting_device_templates N/A N/A hd_template N/A hosting_device_template N/A id N/A N/A contextlib contextmanager _get_test_hosting_device_attr N/A N/A self template_id management_port_id admin_state_up N/A True kwargs N/A N/A data N/A tenant_id template_id credentials_id device_id admin_state_up management_ip_address management_port_id protocol_port cfg_agent_id tenant_bound auto_delete N/A N/A kwargs get tenant_id N/A self _tenant_id template_id N/A N/A kwargs get credentials_id N/A N/A kwargs get device_id mfc_device_id admin_state_up N/A N/A kwargs get management_ip_address 10.0.100.10 management_port_id N/A N/A kwargs get protocol_port 22 N/A N/A kwargs get cfg_agent_id N/A N/A kwargs get tenant_bound N/A N/A kwargs get auto_delete False N/A data N/A _get_test_hosting_device_template_attr N/A N/A self name enabled host_category N/A device_template_1 True VM_CATEGORY kwargs N/A N/A data N/A tenant_id name enabled host_category service_types image flavor default_credentials_id configuration_mechanism protocol_port booting_time slot_capacity desired_slots_free tenant_bound device_driver plugging_driver N/A N/A kwargs get tenant_id N/A self _tenant_id name enabled host_category N/A N/A kwargs get service_types DEFAULT_SERVICE_TYPES N/A N/A kwargs get image N/A N/A kwargs get flavor N/A N/A kwargs get default_credentials_id DEFAULT_CREDENTIALS_ID N/A N/A kwargs get configuration_mechanism N/A N/A kwargs get protocol_port 22 N/A N/A kwargs get booting_time 0 N/A N/A kwargs get slot_capacity 0 N/A N/A kwargs get desired_slots_free 0 N/A N/A kwargs get tenant_bound N/A N/A N/A kwargs get device_driver NOOP_DEVICE_DRIVER N/A N/A kwargs get plugging_driver NOOP_PLUGGING_DRIVER N/A data N/A _test_list_resources N/A N/A self resource items neutron_context query_params N/A None None N/A N/A N/A N/A resource endswith y N/A N/A resource_plural N/A N/A resource replace y ies N/A N/A resource_plural N/A resource s N/A res N/A N/A self _list resource_plural neutron_context neutron_context query_params query_params N/A resource N/A N/A resource replace - _ N/A N/A N/A self assertEqual N/A sorted N/A N/A N/A i N/A resource N/A id N/A i items N/A sorted N/A N/A i N/A id N/A i N/A res N/A resource_plural N/A _replace_hosting_device_status N/A N/A self attrs old_status new_status N/A N/A N/A N/A N/A attrs N/A status old_status N/A N/A N/A attrs N/A status new_status N/A attrs N/A _test_create_hosting_device_templates N/A N/A self N/A N/A N/A nnt N/A N/A self _create_hosting_device_template N/A self fmt NN_TEMPLATE_NAME True NN_CATEGORY N/A nw_node_template N/A N/A self deserialize N/A self fmt nnt N/A vmt N/A N/A self _create_hosting_device_template N/A self fmt VM_TEMPLATE_NAME True VM_CATEGORY booting_time VM_BOOTING_TIME slot_capacity VM_SLOT_CAPACITY desired_slots_free VM_DESIRED_SLOTS_FREE device_driver TEST_DEVICE_DRIVER plugging_driver TEST_PLUGGING_DRIVER N/A vm_template N/A N/A self deserialize N/A self fmt vmt N/A hwt N/A N/A self _create_hosting_device_template N/A self fmt HW_TEMPLATE_NAME True HW_CATEGORY N/A hw_template N/A N/A self deserialize N/A self fmt hwt N/A N/A network_node vm hw N/A template router_type nw_node_template NS_ROUTERTYPE_NAME N/A template router_type vm_template VM_ROUTERTYPE_NAME N/A template router_type hw_template HW_ROUTERTYPE_NAME N/A _test_remove_hosting_device_templates N/A N/A self N/A N/A N/A hdt N/A N/A N/A self _list hosting_device_templates N/A hosting_device_templates N/A N/A N/A N/A self _delete hosting_device_templates N/A hdt N/A id N/A N/A TestDeviceManagerDBPlugin N/A N/A test_db_base_plugin_v2 NeutronDbPluginV2TestCase DeviceManagerTestCaseMixin N/A device_manager_test_support DeviceManagerTestSupportMixin N/A N/A N/A N/A hdm_db HostingDeviceManagerMixin path_prefix /dev_mgr N/A resource_prefix_map N/A dict N/A N/A k /dev_mgr N/A k N/A N/A N/A ciscohostingdevicemanager RESOURCE_ATTRIBUTE_MAP keys setUp N/A N/A self core_plugin dm_plugin ext_mgr N/A None None None N/A N/A N/A dm_plugin None N/A N/A dm_plugin DB_DM_PLUGIN_KLASS N/A service_plugins N/A dm_plugin_name dm_plugin N/A N/A N/A N/A cfg CONF set_override api_extensions_path N/A device_manager_test_support extensions_path N/A N/A N/A N/A cfg CONF set_default allow_overlapping_ips True N/A N/A N/A hdm_db HostingDeviceManagerMixin supported_extension_aliases N/A N/A ciscohostingdevicemanager HOSTING_DEVICE_MANAGER_ALIAS N/A N/A N/A N/A super TestDeviceManagerDBPlugin self setUp plugin core_plugin service_plugins service_plugins ext_mgr ext_mgr N/A N/A N/A N/A cfg CONF set_override policy_file policy_path oslo_policy N/A N/A ext_mgr N/A N/A N/A self plugin N/A N/A importutils import_object dm_plugin N/A ext_mgr N/A N/A api_ext PluginAwareExtensionManager N/A device_manager_test_support extensions_path N/A N/A c_constants DEVICE_MANAGER N/A self plugin N/A app N/A N/A config load_paste_app extensions_test_app N/A N/A self ext_api N/A N/A api_ext ExtensionMiddleware app ext_mgr ext_mgr N/A N/A N/A self _mock_l3_admin_tenant N/A N/A N/A self _create_mgmt_nw_for_tests N/A self fmt N/A N/A self _devmgr N/A N/A N/A NeutronManager get_service_plugins N/A N/A c_constants DEVICE_MANAGER N/A N/A N/A self _devmgr _svc_vm_mgr_obj N/A N/A service_vm_lib ServiceVMManager True None None None keystone_session N/A N/A mock MagicMock N/A N/A N/A self _mock_svc_vm_create_delete N/A self _devmgr N/A N/A self _other_tenant_id N/A N/A device_manager_test_support _uuid N/A N/A N/A self _devmgr _core_plugin N/A N/A NeutronManager get_plugin N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self _test_remove_all_hosting_devices N/A N/A N/A self _remove_mgmt_nw_for_tests N/A N/A N/A N/A super TestDeviceManagerDBPlugin self tearDown N/A test_create_vm_hosting_device N/A N/A self N/A N/A N/A N/A N/A self hosting_device_template hdt N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A creds N/A N/A device_manager_test_support _uuid N/A attrs N/A N/A self _get_test_hosting_device_attr template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id auto_delete True credentials_id creds N/A N/A N/A self hosting_device template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id auto_delete True credentials_id creds hd N/A N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A hd N/A hosting_device N/A k N/A test_create_hw_hosting_device N/A N/A self N/A N/A N/A N/A N/A self hosting_device_template host_category HW_CATEGORY hdt N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A creds N/A N/A device_manager_test_support _uuid N/A attrs N/A N/A self _get_test_hosting_device_attr template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id credentials_id creds N/A N/A N/A self hosting_device template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id credentials_id creds hd N/A N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A hd N/A hosting_device N/A k N/A test_show_hosting_device N/A N/A self N/A N/A N/A device_id device_XYZ N/A N/A N/A self hosting_device_template hdt N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A creds N/A N/A device_manager_test_support _uuid N/A attrs N/A N/A self _get_test_hosting_device_attr device_id device_id template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id credentials_id creds N/A N/A N/A self hosting_device device_id device_id template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id credentials_id creds hd N/A N/A req N/A N/A self new_show_request hosting_devices N/A N/A hd N/A hosting_device N/A id fmt N/A self fmt N/A res N/A N/A self deserialize N/A self fmt N/A N/A req get_response N/A self ext_api N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A res N/A hosting_device N/A k N/A test_list_hosting_devices N/A N/A self N/A N/A N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port1 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port2 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port3 N/A N/A mp1_id N/A N/A mgmt_port1 N/A port N/A id N/A mp2_id N/A N/A mgmt_port2 N/A port N/A id N/A mp3_id N/A N/A mgmt_port3 N/A port N/A id N/A N/A N/A self hosting_device name hd1 template_id hdt_id management_port_id mp1_id hd1 N/A N/A N/A N/A self hosting_device name hd2 template_id hdt_id management_port_id mp2_id hd2 N/A N/A N/A N/A self hosting_device name hd3 template_id hdt_id management_port_id mp3_id hd3 N/A N/A N/A N/A self _test_list_resources hosting_device N/A hd1 hd2 hd3 query_params N/A template_id= hdt_id N/A test_update_hosting_device N/A N/A self N/A N/A N/A new_device_id device_XYZ N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A creds N/A N/A device_manager_test_support _uuid N/A attrs N/A N/A self _get_test_hosting_device_attr device_id new_device_id template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id credentials_id creds N/A N/A N/A self hosting_device template_id hdt_id management_port_id mgmt_port_id credentials_id creds hd N/A N/A data N/A hosting_device N/A device_id new_device_id N/A req N/A N/A self new_update_request hosting_devices data N/A N/A hd N/A hosting_device N/A id N/A res N/A N/A self deserialize N/A self fmt N/A N/A req get_response N/A self ext_api N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A res N/A hosting_device N/A k N/A test_delete_hosting_device_not_in_use_succeeds N/A N/A self N/A N/A N/A ctx N/A N/A n_context get_admin_context N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A N/A N/A self hosting_device template_id hdt_id management_port_id mgmt_port_id no_delete True hd N/A N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A req N/A N/A self new_delete_request hosting_devices hd_id N/A res N/A N/A req get_response N/A self ext_api N/A N/A N/A self assertEqual 204 N/A res status_int N/A N/A N/A self assertRaises N/A ciscohostingdevicemanager HostingDeviceNotFound N/A N/A self plugin get_hosting_device ctx hd_id N/A test_delete_hosting_device_in_use_fails N/A N/A self N/A N/A N/A ctx N/A N/A n_context get_admin_context N/A N/A N/A self hosting_device_template slot_capacity 1 hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A N/A N/A self hosting_device template_id hdt_id management_port_id mgmt_port_id hd N/A N/A N/A N/A N/A mock patch object N/A hdm_db HostingDeviceManagerMixin _dispatch_pool_maintenance_job N/A N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A hd_db N/A N/A N/A self _devmgr _get_hosting_device ctx hd_id N/A resource N/A N/A self _get_fake_resource N/A N/A N/A self assertTrue N/A N/A N/A self _devmgr acquire_hosting_device_slots ctx hd_db resource router L3_ROUTER_NAT 1 N/A N/A N/A self assertRaises N/A ciscohostingdevicemanager HostingDeviceInUse N/A N/A self _devmgr delete_hosting_device ctx hd_id N/A req N/A N/A self new_show_request hosting_devices hd_id fmt N/A self fmt N/A res N/A N/A req get_response N/A self ext_api N/A N/A N/A self assertEqual 200 N/A res status_int N/A N/A N/A N/A self _devmgr release_hosting_device_slots ctx hd_db resource 1 N/A test_get_hosting_device_configuration N/A N/A self N/A N/A N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A N/A N/A self hosting_device template_id hdt_id management_port_id mgmt_port_id hd N/A N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A rpc N/A N/A devmgr_rpc_cfgagent_api DeviceMgrCfgAgentNotifyAPI N/A self _devmgr N/A N/A N/A self _devmgr agent_notifiers N/A N/A c_constants AGENT_TYPE_CFG rpc N/A N/A N/A self _devmgr get_cfg_agents_for_hosting_devices None N/A N/A N/A N/A mock patch object N/A rpc client prepare return_value N/A rpc client mock_prepare N/A N/A N/A N/A N/A mock patch object N/A rpc client call mock_call N/A N/A N/A N/A N/A mock patch object N/A self _devmgr get_cfg_agents_for_hosting_devices agt_mock N/A N/A N/A agt_mock return_value N/A N/A N/A mock MagicMock N/A agent_host an_agent_host N/A N/A N/A N/A agt_mock return_value N/A 0 host agent_host N/A fake_running_config a fake running config N/A N/A mock_call return_value fake_running_config N/A ctx N/A N/A n_context Context user_id None tenant_id None is_admin False overwrite False N/A res N/A N/A N/A self _devmgr get_hosting_device_config ctx hd_id N/A N/A N/A self assertEqual fake_running_config res N/A N/A N/A agt_mock assert_called_once_with N/A mock ANY N/A hd_id admin_state_up True schedule True N/A N/A N/A mock_prepare assert_called_with server agent_host N/A N/A N/A mock_call assert_called_with N/A mock ANY get_hosting_device_configuration payload N/A hosting_device_id hd_id N/A test_get_hosting_device_configuration_no_agent_found N/A N/A self N/A N/A N/A ctx N/A N/A n_context Context user_id None tenant_id None is_admin False overwrite False N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A N/A N/A self hosting_device template_id hdt_id management_port_id mgmt_port_id hd N/A N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A rpc N/A N/A devmgr_rpc_cfgagent_api DeviceMgrCfgAgentNotifyAPI N/A self _devmgr N/A N/A N/A self _devmgr agent_notifiers N/A N/A c_constants AGENT_TYPE_CFG rpc N/A N/A N/A self _devmgr get_cfg_agents_for_hosting_devices None N/A N/A N/A N/A mock patch object N/A rpc client prepare return_value N/A rpc client mock_prepare N/A N/A N/A N/A N/A mock patch object N/A rpc client call mock_call N/A N/A N/A N/A N/A mock patch object N/A self _devmgr get_cfg_agents_for_hosting_devices agt_mock N/A N/A N/A agt_mock return_value N/A N/A res N/A N/A N/A self _devmgr get_hosting_device_config ctx hd_id N/A N/A N/A self assertIsNone res N/A N/A N/A agt_mock assert_called_once_with N/A mock ANY N/A hd_id admin_state_up True schedule True N/A N/A N/A self assertEqual 0 N/A mock_prepare call_count N/A N/A N/A self assertEqual 0 N/A mock_call call_count N/A test_hosting_device_policy N/A N/A self N/A N/A N/A device_id device_XYZ N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A tenant_id N/A N/A hdt N/A hosting_device_template N/A tenant_id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A creds N/A N/A device_manager_test_support _uuid N/A N/A N/A self hosting_device device_id device_id template_id hdt_id management_port_id mgmt_port_id credentials_id creds hd N/A N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A N/A N/A self _create_hosting_device N/A self fmt hdt_id mgmt_port_id True N/A N/A N/A webob exc HTTPForbidden code tenant_id tenant_id set_context True N/A non_admin_ctx N/A N/A n_context Context tenant_id N/A N/A N/A self _show hosting_devices hd_id N/A N/A N/A webob exc HTTPNotFound code non_admin_ctx N/A N/A N/A self _update hosting_devices hd_id N/A hosting_device N/A name new_name N/A N/A N/A webob exc HTTPForbidden code non_admin_ctx N/A N/A N/A self _delete hosting_devices hd_id N/A N/A N/A webob exc HTTPNotFound code non_admin_ctx N/A req N/A N/A self new_show_request hosting_devices hd_id N/A self fmt get_hosting_device_config N/A N/A N/A req environ N/A neutron.context non_admin_ctx N/A res N/A N/A req get_response N/A N/A self _api_for_resource hosting_devices N/A N/A N/A self assertEqual N/A N/A N/A webob exc HTTPNotFound code N/A res status_int N/A test_create_vm_hosting_device_template N/A N/A self N/A N/A N/A attrs N/A N/A self _get_test_hosting_device_template_attr N/A N/A N/A self hosting_device_template hdt N/A N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A hdt N/A hosting_device_template N/A k N/A test_create_hw_hosting_device_template N/A N/A self N/A N/A N/A attrs N/A N/A self _get_test_hosting_device_template_attr host_category HW_CATEGORY N/A N/A N/A self hosting_device_template host_category HW_CATEGORY hdt N/A N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A hdt N/A hosting_device_template N/A k N/A test_create_nn_hosting_device_template N/A N/A self N/A N/A N/A attrs N/A N/A self _get_test_hosting_device_template_attr host_category NN_CATEGORY N/A N/A N/A self hosting_device_template host_category NN_CATEGORY hdt N/A N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A hdt N/A hosting_device_template N/A k N/A test_show_hosting_device_template N/A N/A self N/A N/A N/A name hosting_device_template1 N/A attrs N/A N/A self _get_test_hosting_device_template_attr name name N/A N/A N/A self hosting_device_template name name hdt N/A N/A req N/A N/A self new_show_request hosting_device_templates N/A N/A hdt N/A hosting_device_template N/A id fmt N/A self fmt N/A res N/A N/A self deserialize N/A self fmt N/A N/A req get_response N/A self ext_api N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A res N/A hosting_device_template N/A k N/A test_list_hosting_device_templates N/A N/A self N/A N/A N/A N/A N/A self hosting_device_template name hdt1 host_category VM_CATEGORY image an_image hdt1 N/A N/A N/A N/A self hosting_device_template name hdt2 host_category HW_CATEGORY image an_image hdt2 N/A N/A N/A N/A self hosting_device_template name hdt3 host_category NN_CATEGORY image an_image hdt3 N/A N/A N/A N/A self _test_list_resources hosting_device_template N/A hdt1 hdt2 hdt3 query_params image=an_image N/A test_update_hosting_device_template N/A N/A self N/A N/A N/A name new_hosting_device_template1 N/A attrs N/A N/A self _get_test_hosting_device_template_attr name name N/A N/A N/A self hosting_device_template hdt N/A N/A data N/A hosting_device_template N/A name name N/A req N/A N/A self new_update_request hosting_device_templates data N/A N/A hdt N/A hosting_device_template N/A id N/A res N/A N/A self deserialize N/A self fmt N/A N/A req get_response N/A self ext_api N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A N/A self assertEqual v N/A N/A res N/A hosting_device_template N/A k N/A test_delete_hosting_device_template_not_in_use_succeeds N/A N/A self N/A N/A N/A ctx N/A N/A n_context get_admin_context N/A N/A N/A self hosting_device_template no_delete True hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A req N/A N/A self new_delete_request hosting_device_templates hdt_id N/A res N/A N/A req get_response N/A self ext_api N/A N/A N/A self assertEqual 204 N/A res status_int N/A N/A N/A self assertRaises N/A ciscohostingdevicemanager HostingDeviceTemplateNotFound N/A N/A self _devmgr get_hosting_device_template ctx hdt_id N/A test_delete_hosting_device_template_in_use_fails N/A N/A self N/A N/A N/A ctx N/A N/A n_context get_admin_context N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A mgmt_port_id N/A N/A mgmt_port N/A port N/A id N/A N/A N/A self hosting_device template_id hdt_id management_port_id mgmt_port_id N/A N/A N/A N/A self assertRaises N/A ciscohostingdevicemanager HostingDeviceTemplateInUse N/A N/A self _devmgr delete_hosting_device_template ctx hdt_id N/A req N/A N/A self new_show_request hosting_device_templates hdt_id fmt N/A self fmt N/A res N/A N/A req get_response N/A self ext_api N/A N/A N/A self assertEqual 200 N/A res status_int N/A test_hosting_device_template_policy N/A N/A self N/A N/A N/A N/A N/A self hosting_device_template hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A tenant_id N/A N/A hdt N/A hosting_device_template N/A tenant_id N/A N/A N/A self _create_hosting_device_template N/A self fmt my_template True Hardware N/A N/A N/A webob exc HTTPForbidden code tenant_id tenant_id set_context True N/A non_admin_ctx N/A N/A n_context Context tenant_id N/A N/A N/A self _show hosting_device_templates hdt_id N/A N/A N/A webob exc HTTPNotFound code non_admin_ctx N/A N/A N/A self _update hosting_device_templates hdt_id N/A hosting_device_template N/A enabled False N/A N/A N/A webob exc HTTPForbidden code non_admin_ctx N/A N/A N/A self _delete hosting_device_templates hdt_id N/A N/A N/A webob exc HTTPNotFound code non_admin_ctx N/A _test_get_driver N/A N/A self get_method id test_for_none is_admin N/A None False False N/A N/A N/A N/A self hosting_device_template hdt N/A N/A context N/A N/A self _get_test_context tenant_id N/A N/A hdt N/A hosting_device_template N/A tenant_id is_admin is_admin N/A driver_getter N/A getattr N/A self _devmgr get_method N/A template_id N/A id N/A N/A hdt N/A hosting_device_template N/A id N/A driver N/A driver_getter context template_id N/A test_for_none N/A N/A N/A N/A self assertIsNone driver N/A N/A N/A N/A self assertIsNotNone driver N/A test_get_hosting_device_driver N/A N/A self N/A N/A N/A N/A N/A self _test_get_driver get_hosting_device_driver N/A test_get_non_existent_hosting_device_driver_returns_none N/A N/A self N/A N/A N/A N/A N/A self _test_get_driver get_hosting_device_driver bogus_id True N/A test_get_plugging_device_driver N/A N/A self N/A N/A N/A N/A N/A self _test_get_driver get_hosting_device_plugging_driver N/A test_get_non_existent_plugging_device_driver_returns_none N/A N/A self N/A N/A N/A N/A N/A self _test_get_driver get_hosting_device_plugging_driver bogus_id True N/A test_get_device_info_for_agent N/A N/A self N/A N/A N/A device_id device_XYZ N/A N/A N/A self hosting_device_template hdt N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A creds N/A N/A device_manager_test_support _uuid N/A mgmt_ip N/A N/A N/A N/A mgmt_port N/A port N/A fixed_ips N/A 0 N/A ip_address N/A N/A N/A self hosting_device device_id device_id template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id credentials_id creds hd N/A N/A context N/A N/A self _get_test_context tenant_id N/A N/A hdt N/A hosting_device_template N/A tenant_id is_admin True N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A hd_db N/A N/A N/A self _devmgr _get_hosting_device context hd_id N/A info N/A N/A N/A self _devmgr get_device_info_for_agent context hd_db N/A N/A N/A self assertEqual mgmt_ip N/A info N/A management_ip_address N/A test_get_device_info_for_agent_no_mgmt_port N/A N/A self N/A N/A N/A device_id device_XYZ N/A N/A N/A self hosting_device_template hdt N/A N/A creds N/A N/A device_manager_test_support _uuid N/A mgmt_ip 192.168.0.55 N/A N/A N/A self hosting_device device_id device_id template_id N/A N/A hdt N/A hosting_device_template N/A id management_ip_address mgmt_ip management_port_id None credentials_id creds hd N/A N/A context N/A N/A self _get_test_context tenant_id N/A N/A hdt N/A hosting_device_template N/A tenant_id is_admin True N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A hd_db N/A N/A N/A self _devmgr _get_hosting_device context hd_id N/A info N/A N/A N/A self _devmgr get_device_info_for_agent context hd_db N/A N/A N/A self assertEqual mgmt_ip N/A info N/A management_ip_address N/A _set_ownership N/A N/A self bound_status tenant_id other_tenant_id N/A None N/A N/A N/A bound_status UNBOUND N/A N/A None N/A N/A N/A bound_status OTHER N/A N/A N/A other_tenant_id N/A self _other_tenant_id N/A N/A tenant_id N/A _test_slots N/A N/A self expected_result expected_bind expected_allocation num_requested slot_capacity initial_bind bind auto_delete is_admin pool_maintenance_expected test_release expected_release_result expected_final_allocation expected_release_bind num_to_release release_pool_maintenance_expected N/A True UNBOUND VM_SLOT_CAPACITY VM_SLOT_CAPACITY VM_SLOT_CAPACITY UNBOUND False True False True False True 0 UNBOUND VM_SLOT_CAPACITY True N/A N/A N/A N/A self hosting_device_template slot_capacity slot_capacity hdt N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet mgmt_port N/A N/A resource N/A N/A self _get_fake_resource N/A tenant_bound N/A N/A self _set_ownership initial_bind N/A resource N/A tenant_id N/A N/A N/A self hosting_device template_id N/A N/A hdt N/A hosting_device_template N/A id management_port_id N/A N/A mgmt_port N/A port N/A id tenant_bound tenant_bound auto_delete auto_delete hd N/A N/A context N/A N/A self _get_test_context tenant_id N/A N/A hdt N/A hosting_device_template N/A tenant_id is_admin is_admin N/A hd_db N/A N/A N/A self _devmgr _get_hosting_device context N/A N/A hd N/A hosting_device N/A id N/A N/A N/A N/A mock patch object N/A hdm_db HostingDeviceManagerMixin _dispatch_pool_maintenance_job pm_mock N/A N/A result N/A N/A N/A self _devmgr acquire_hosting_device_slots context hd_db resource router L3_ROUTER_NAT num_requested bind N/A allocation N/A N/A N/A self _devmgr get_slot_allocation context resource_id N/A resource N/A id N/A N/A N/A self assertEqual expected_result result N/A N/A N/A self assertEqual expected_allocation allocation N/A expected_bind N/A N/A self _set_ownership expected_bind N/A resource N/A tenant_id N/A N/A N/A self assertEqual expected_bind N/A hd_db tenant_bound N/A pool_maintenance_expected N/A N/A N/A N/A pm_mock assert_called_once_with N/A mock ANY N/A num_calls 1 N/A N/A N/A N/A pm_mock assert_not_called N/A num_calls 0 N/A test_release N/A N/A result N/A N/A N/A self _devmgr release_hosting_device_slots context hd_db resource num_to_release N/A N/A test_release N/A N/A N/A allocation N/A N/A N/A self _devmgr get_slot_allocation context resource_id N/A resource N/A id N/A N/A N/A self assertEqual expected_release_result result N/A N/A N/A self assertEqual expected_final_allocation allocation N/A expected_release_bind N/A N/A self _set_ownership expected_release_bind N/A resource N/A tenant_id N/A N/A N/A self assertEqual expected_release_bind N/A hd_db tenant_bound N/A release_pool_maintenance_expected N/A N/A num_calls 1 N/A N/A N/A self assertEqual num_calls N/A pm_mock call_count N/A N/A num_to_release 0 N/A to_clean_up N/A num_requested num_to_release N/A N/A to_clean_up 0 N/A N/A to_clean_up num_requested N/A to_clean_up N/A N/A N/A N/A N/A self _devmgr release_hosting_device_slots context hd_db resource to_clean_up N/A test_acquire_with_slot_surplus_in_owned_hosting_device_succeeds N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind REQUESTER initial_bind REQUESTER bind True N/A test_acquire_with_slot_surplus_in_shared_hosting_device_succeeds N/A N/A self N/A N/A N/A N/A N/A self _test_slots N/A test_acquire_with_slot_surplus_take_hosting_device_ownership_succeeds N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind REQUESTER initial_bind UNBOUND bind True N/A test_acquire_with_slot_surplus_drop_hosting_device_ownership_succeeds N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind UNBOUND initial_bind REQUESTER bind False N/A test_acquire_slots_release_hosting_device_ownership_affects_all N/A N/A self N/A N/A N/A N/A test_acquire_slots_in_other_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind OTHER expected_allocation 0 initial_bind OTHER pool_maintenance_expected False N/A test_acquire_slots_take_ownership_of_other_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind OTHER expected_allocation 0 initial_bind OTHER bind True pool_maintenance_expected False N/A test_acquire_slots_take_ownership_of_multi_tenant_hosting_device_fails N/A N/A self N/A N/A N/A N/A test_acquire_with_slot_deficit_in_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind REQUESTER expected_allocation 0 initial_bind REQUESTER num_requested N/A VM_SLOT_CAPACITY 1 N/A test_acquire_with_slot_deficit_in_shared_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind UNBOUND expected_allocation 0 num_requested N/A VM_SLOT_CAPACITY 1 N/A test_acquire_with_slot_deficit_in_other_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind OTHER expected_allocation 0 initial_bind OTHER num_requested N/A VM_SLOT_CAPACITY 1 pool_maintenance_expected False N/A test_release_allocated_slots_in_owned_hosting_device_succeeds N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind REQUESTER initial_bind REQUESTER bind True test_release True expected_release_bind REQUESTER expected_final_allocation 1 num_to_release N/A VM_SLOT_CAPACITY 1 N/A test_release_allocated_slots_in_shared_hosting_device_succeeds N/A N/A self N/A N/A N/A N/A N/A self _test_slots test_release True expected_final_allocation 1 num_to_release N/A VM_SLOT_CAPACITY 1 N/A test_release_all_slots_returns_hosting_device_ownership N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind REQUESTER initial_bind REQUESTER bind True test_release True expected_release_bind UNBOUND N/A test_release_slots_in_other_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind OTHER expected_allocation 0 initial_bind OTHER pool_maintenance_expected False test_release True expected_release_result False expected_release_bind OTHER expected_final_allocation 0 num_to_release N/A VM_SLOT_CAPACITY 1 release_pool_maintenance_expected False N/A test_release_too_many_slots_in_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind REQUESTER initial_bind REQUESTER bind True test_release True expected_release_result False expected_release_bind REQUESTER expected_final_allocation VM_SLOT_CAPACITY num_to_release N/A VM_SLOT_CAPACITY 1 N/A test_release_too_many_slots_in_shared_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots test_release True expected_release_result False expected_release_bind UNBOUND expected_final_allocation VM_SLOT_CAPACITY num_to_release N/A VM_SLOT_CAPACITY 1 N/A test_release_too_many_slots_in_other_owned_hosting_device_fails N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_result False expected_bind OTHER expected_allocation 0 initial_bind OTHER pool_maintenance_expected False test_release True expected_release_result False expected_release_bind OTHER expected_final_allocation 0 num_to_release N/A VM_SLOT_CAPACITY 1 release_pool_maintenance_expected False N/A test_release_all_slots_by_negative_num_argument_shared_hosting_device N/A N/A self N/A N/A N/A N/A N/A self _test_slots test_release True expected_final_allocation 0 num_to_release -1 N/A test_release_all_slots_by_negative_num_argument_owned_hosting_device N/A N/A self N/A N/A N/A N/A N/A self _test_slots expected_bind REQUESTER initial_bind REQUESTER bind True test_release True expected_release_bind UNBOUND expected_final_allocation 0 num_to_release -1 N/A _test_delete N/A N/A self to_delete auto_delete no_delete force_delete expected_num_remaining N/A None None None True 0 N/A N/A auto_delete N/A auto_delete N/A True False False True True N/A no_delete N/A no_delete N/A True True True True True N/A N/A N/A self hosting_device_template hdt1 N/A N/A N/A N/A self hosting_device_template hdt2 N/A N/A hdt0_id N/A N/A hdt1 N/A hosting_device_template N/A id N/A hdt1_id N/A N/A hdt2 N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete N/A no_delete N/A 0 mgmt_port0 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete N/A no_delete N/A 1 mgmt_port1 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete N/A no_delete N/A 2 mgmt_port2 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete N/A no_delete N/A 3 mgmt_port3 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete N/A no_delete N/A 4 mgmt_port4 N/A N/A mp0_id N/A N/A mgmt_port0 N/A port N/A id N/A mp1_id N/A N/A mgmt_port1 N/A port N/A id N/A mp2_id N/A N/A mgmt_port2 N/A port N/A id N/A mp3_id N/A N/A mgmt_port3 N/A port N/A id N/A mp4_id N/A N/A mgmt_port4 N/A port N/A id N/A N/A N/A self hosting_device device_id 0_hdt0_id template_id hdt0_id management_port_id mp0_id auto_delete N/A auto_delete N/A 0 no_delete N/A no_delete N/A 0 N/A N/A N/A N/A self hosting_device device_id 1_hdt1_id template_id hdt1_id management_port_id mp1_id auto_delete N/A auto_delete N/A 1 no_delete N/A no_delete N/A 1 N/A N/A N/A N/A self hosting_device device_id 2_hdt0_id template_id hdt0_id management_port_id mp2_id auto_delete N/A auto_delete N/A 2 no_delete N/A no_delete N/A 2 N/A N/A N/A N/A self hosting_device device_id 3_hdt0_id template_id hdt0_id management_port_id mp3_id auto_delete N/A auto_delete N/A 3 no_delete N/A no_delete N/A 3 N/A N/A N/A N/A self hosting_device device_id 4_hdt1_id template_id hdt1_id management_port_id mp4_id auto_delete N/A auto_delete N/A 4 no_delete N/A no_delete N/A 4 N/A N/A context N/A N/A self _get_test_context is_admin True N/A N/A to_delete None N/A N/A N/A N/A N/A self _devmgr delete_all_hosting_devices context force_delete N/A N/A N/A to_delete 0 N/A N/A template N/A N/A N/A self _devmgr _get_hosting_device_template context hdt0_id N/A N/A N/A N/A self _devmgr delete_all_hosting_devices_by_template context template force_delete N/A N/A template N/A N/A N/A self _devmgr _get_hosting_device_template context hdt1_id N/A N/A N/A N/A self _devmgr delete_all_hosting_devices_by_template context template force_delete N/A result_hds N/A N/A N/A self _list hosting_devices N/A hosting_devices N/A N/A N/A self assertEqual expected_num_remaining N/A len result_hds N/A test_delete_all_hosting_devices N/A N/A self N/A N/A N/A N/A N/A self _test_delete N/A test_delete_all_managed_hosting_devices N/A N/A self N/A N/A N/A N/A N/A self _test_delete no_delete N/A True False False True True force_delete False expected_num_remaining 2 N/A test_delete_all_hosting_devices_by_template N/A N/A self N/A N/A N/A N/A N/A self _test_delete to_delete 1 expected_num_remaining 3 no_delete N/A False True False False True N/A test_delete_all_managed_hosting_devices_by_template N/A N/A self N/A N/A N/A N/A N/A self _test_delete to_delete 1 expected_num_remaining 4 no_delete N/A False False False False True force_delete False N/A _test_failed_hosting_device N/A N/A self host_category expected_num_remaining auto_delete no_delete N/A VM_CATEGORY 0 True True N/A N/A N/A N/A self hosting_device_template host_category host_category hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete no_delete mgmt_port N/A N/A N/A N/A self hosting_device template_id hdt_id management_port_id N/A N/A mgmt_port N/A port N/A id auto_delete auto_delete no_delete no_delete hd N/A N/A N/A N/A mock patch neutron.manager.NeutronManager.get_service_plugins N/A N/A hd_id N/A N/A hd N/A hosting_device N/A id N/A m2 N/A N/A mock MagicMock N/A N/A N/A self _devmgr agent_notifiers N/A N/A c_constants AGENT_TYPE_CFG m2 N/A context N/A N/A self _get_test_context N/A N/A N/A N/A self _devmgr handle_non_responding_hosting_devices context None N/A hd_id N/A result_hds N/A N/A N/A self _list hosting_devices N/A hosting_devices N/A N/A N/A self assertEqual expected_num_remaining N/A len result_hds N/A l3mock N/A N/A N/A N/A N/A NeutronManager get_service_plugins get handle_non_responding_hosting_devices N/A N/A N/A l3mock assert_called_once_with N/A mock ANY N/A mock ANY N/A hd_id N/A N/A N/A expected_num_remaining 0 N/A N/A N/A N/A N/A m2 hosting_devices_removed assert_called_once_with N/A mock ANY N/A hd_id N/A False None N/A test_failed_managed_vm_based_hosting_device_gets_deleted N/A N/A self N/A N/A N/A N/A N/A self _test_failed_hosting_device N/A test_failed_non_managed_vm_based_hosting_device_not_deleted N/A N/A self N/A N/A N/A N/A N/A self _test_failed_hosting_device expected_num_remaining 1 auto_delete False no_delete False N/A test_failed_non_vm_based_hosting_device_not_deleted N/A N/A self N/A N/A N/A N/A N/A self _test_failed_hosting_device host_category HW_CATEGORY expected_num_remaining 1 no_delete False N/A _test_pool_maintenance N/A N/A self desired_slots_free slot_capacity host_category expected define_credentials N/A 10 3 VM_CATEGORY 15 True N/A N/A N/A N/A self hosting_device_template host_category host_category slot_capacity slot_capacity desired_slots_free desired_slots_free plugging_driver TEST_PLUGGING_DRIVER hdt N/A N/A hdt_id N/A N/A hdt N/A hosting_device_template N/A id N/A creds_id N/A N/A define_credentials True DEFAULT_CREDENTIALS_ID non_existent_id N/A credentials N/A user_name password bob tooEasy N/A N/A N/A N/A mock patch dict N/A N/A self plugin _credentials N/A creds_id credentials N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete True mgmt_port1 N/A N/A N/A N/A self port subnet N/A self _mgmt_subnet no_delete True mgmt_port2 N/A N/A N/A N/A self hosting_device template_id hdt_id management_port_id N/A N/A mgmt_port1 N/A port N/A id auto_delete True no_delete True N/A N/A N/A N/A self hosting_device template_id hdt_id management_port_id N/A N/A mgmt_port2 N/A port N/A id auto_delete True no_delete True N/A N/A context N/A N/A self _get_test_context is_admin True N/A template N/A N/A N/A self _devmgr _get_hosting_device_template context hdt_id N/A N/A N/A self _devmgr _gt_pool N/A N/A mock MagicMock N/A N/A N/A N/A N/A self _devmgr _gt_pool spawn_n side_effect N/A N/A N/A fcn ctx tmplt N/A N/A fcn ctx tmplt N/A N/A N/A N/A self _devmgr _dispatch_pool_maintenance_job template N/A result_hds N/A N/A N/A self _list hosting_devices N/A hosting_devices N/A N/A N/A self assertEqual expected N/A N/A len result_hds slot_capacity N/A N/A N/A N/A self _devmgr delete_all_hosting_devices context True N/A test_vm_based_hosting_device_excessive_slot_deficit_adds_slots N/A N/A self N/A N/A N/A N/A N/A self _test_pool_maintenance N/A test_vm_based_hosting_device_excessive_slot_deficit_no_credentials N/A N/A self N/A N/A N/A N/A N/A self _test_pool_maintenance expected 6 define_credentials False N/A test_vm_based_hosting_device_marginal_slot_deficit_no_change N/A N/A self N/A N/A N/A N/A N/A self _test_pool_maintenance desired_slots_free 7 expected 6 N/A test_vm_based_hosting_device_excessive_slot_surplus_removes_slots N/A N/A self N/A N/A N/A N/A N/A self _test_pool_maintenance desired_slots_free 3 expected 3 N/A test_vm_based_hosting_device_marginal_slot_surplus_no_change N/A N/A self N/A N/A N/A N/A N/A self _test_pool_maintenance desired_slots_free 5 expected 6 N/A test_hw_based_hosting_device_no_change N/A N/A self N/A N/A N/A N/A N/A self _test_pool_maintenance host_category HW_CATEGORY expected 6 N/A N/A