Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults vararg body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Num NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str NameLoad Str NameLoad NameLoad ListLoad Dict Str NameLoad Dict Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Dict Str NameLoad Dict Str NameLoad Dict Str NameLoad Return ListComp TupleLoad NameLoad NameLoad comprehension NameStore Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Index Num Assign NameStore Dict Str Str Str NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Dict Str Str NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If CompareEq NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Pass decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Num Str Str Str Num Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body Return NameLoad Global identifier Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Dict Str Str Str Str Str Str Str Str Str Str Str Str decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Num Str attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Dict Str Str Str Str Str Call AttributeLoad NameLoad attr Str Str Str Str Num Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str TupleLoad Str ListLoad TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad TupleLoad Str ListLoad TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad TupleLoad Str ListLoad TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str TupleLoad Str ListLoad TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str For NameStore ListLoad Str Str Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If NameLoad body Assign NameStore TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str Index Num Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str Index Num Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Assign NameStore TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str Index Num Str orelse Assign NameStore TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str Index Num Str orelse Assign NameStore TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore ListLoad TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Str Str TupleLoad Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Str Str TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str attr Str Index Num Str TupleLoad Lambda arguments args NameParam defaults AttributeLoad Call AttributeLoad NameLoad attr Str attr Str If NameLoad body AugAssignAdd NameStore ListLoad TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str attr Str Index Num Str TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str attr Str Index Num Str orelse AugAssignAdd NameStore ListLoad TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str attr Str Index Num Str AugAssignAdd NameStore ListLoad TupleLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str attr Str Index Num Str For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args defaults body Return Num decorator_list FunctionDef arguments args defaults body Return Str decorator_list FunctionDef arguments args defaults body Return ListLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr CompareGtE SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num orelse Expr Call AttributeLoad NameLoad attr CompareGtE SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return FunctionDef arguments args NameParam defaults vararg body Return decorator_list FunctionDef arguments args NameParam defaults body Raise Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore CompareLtE Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Dict Str Str Str Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Str Str BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpMod NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Num attr NameLoad FunctionDef arguments args NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr BinOpMult BinOpMult BinOpMult Num Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr TupleLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BoolOpAnd CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return FunctionDef arguments args NameParam NameParam defaults body Return decorator_list Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore CompareLtE Num Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Num Assign NameStore ListLoad Dict Str Str Str Str Num Str Str Num Dict Str Str Str Str Num Str Str Num Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr Pass decorator_list decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args defaults vararg kwarg body Expr Str Pass decorator_list decorator_list Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Lambda arguments args defaults AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body Return NameLoad Global identifier Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Return NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Str Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Str Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Str Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Str Num Num SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad TupleLoad Str Str Str body Return TupleLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad TupleLoad Str Str Str body Return TupleLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad TupleLoad Str Str Str body Return TupleLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad TupleLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Return TupleLoad Str Str If CompareEq NameLoad TupleLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Return TupleLoad Str Str Print NameLoad NameLoad decorator_list ImportFrom alias Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults UnaryOpNot Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr For NameStore NameLoad body If UnaryOpNot CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Break Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn BinOpMod Str NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Break Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr Assign NameStore Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr Assign NameStore BinOpSub BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore BinOpSub BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareIn Str AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr ClassDef bases NameLoad body Pass decorator_list Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Lambda arguments args defaults AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr CompareLt Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Str Str Str Str Assign AttributeStore NameLoad attr Dict For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr BinOpMod BinOpAdd Str Str TupleLoad NameLoad NameLoad Assign NameStore BinOpAdd ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Str Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore ListLoad NameLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpMod Str NameLoad decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A copy N/A eventlet N/A mox N/A os N/A re N/A shutil N/A sys N/A tempfile xml.etree.ElementTree fromstring xml_to_tree xml.dom.minidom parseString xml_to_dom nova context nova db nova exception nova flags nova test nova utils nova.api.ec2 cloud nova.compute power_state nova.compute vm_states nova.virt.libvirt connection nova.virt.libvirt firewall N/A libvirt None N/A FLAGS N/A flags FLAGS _concurrency N/A N/A wait done target N/A N/A N/A N/A N/A wait wait N/A N/A N/A done send N/A FakeVirDomainSnapshot N/A object N/A __init__ N/A N/A self dom N/A None N/A N/A N/A self dom dom N/A delete N/A N/A self flags N/A N/A N/A N/A N/A FakeVirtDomain N/A object N/A __init__ N/A N/A self fake_xml N/A None N/A N/A fake_xml N/A N/A N/A self _fake_dom_xml fake_xml N/A N/A N/A self _fake_dom_xml 
                <domain type='kvm'>
                    <devices>
                        <disk type='file'>
                            <source file='filename'/>
                        </disk>
                    </devices>
                </domain>
             N/A snapshotCreateXML N/A N/A self N/A args N/A N/A N/A FakeVirDomainSnapshot self N/A createWithFlags N/A N/A self launch_flags N/A N/A N/A N/A XMLDesc N/A N/A self N/A args N/A N/A N/A self _fake_dom_xml N/A N/A _create_network_info N/A N/A count ipv6 N/A 1 None N/A N/A N/A ipv6 None N/A N/A ipv6 N/A FLAGS use_ipv6 N/A fake fake N/A fake_ip 10.11.12.13 N/A fake_ip_2 0.0.0.1 N/A fake_ip_3 0.0.0.1 N/A fake_vlan 100 N/A fake_bridge_interface eth0 N/A network N/A bridge cidr cidr_v6 gateway_v6 vlan bridge_interface fake fake_ip fake_ip fake fake_vlan fake_bridge_interface N/A mapping N/A mac dhcp_server gateway gateway6 ips fake 10.0.0.1 fake fake N/A N/A ip fake_ip N/A ip fake_ip N/A ipv6 N/A N/A N/A mapping N/A ip6s N/A N/A ip fake_ip N/A ip fake_ip_2 N/A ip fake_ip_3 N/A N/A N/A network mapping N/A x N/A xrange 0 count N/A _setup_networking N/A N/A instance_id ip mac N/A 1.2.3.4 56:12:12:12:12:12 N/A N/A ctxt N/A N/A context get_admin_context N/A network_ref N/A N/A N/A db project_get_networks ctxt fake associate True N/A 0 N/A vif N/A address network_id instance_id mac N/A network_ref N/A id instance_id N/A vif_ref N/A N/A db virtual_interface_create ctxt vif N/A fixed_ip N/A address network_id virtual_interface_id ip N/A network_ref N/A id N/A vif_ref N/A id N/A N/A N/A db fixed_ip_create ctxt fixed_ip N/A N/A N/A db fixed_ip_update ctxt ip N/A allocated instance_id True instance_id N/A CacheConcurrencyTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super CacheConcurrencyTestCase self setUp N/A N/A N/A self flags instances_path nova.compute.manager fake_exists N/A N/A fname N/A N/A N/A basedir N/A N/A N/A os path join N/A FLAGS instances_path _base N/A N/A fname basedir N/A N/A True N/A False N/A fake_execute N/A N/A N/A args kwargs N/A N/A N/A N/A N/A N/A N/A self stubs Set N/A os path exists fake_exists N/A N/A N/A N/A self stubs Set utils execute fake_execute N/A test_same_fname_concurrency N/A N/A self N/A N/A N/A Ensures that the same fname cache runs at a sequentially N/A conn N/A connection LibvirtConnection N/A wait1 N/A N/A N/A eventlet event Event N/A done1 N/A N/A N/A eventlet event Event N/A N/A N/A eventlet spawn N/A conn _cache_image _concurrency target fname False wait1 done1 N/A wait2 N/A N/A N/A eventlet event Event N/A done2 N/A N/A N/A eventlet event Event N/A N/A N/A eventlet spawn N/A conn _cache_image _concurrency target fname False wait2 done2 N/A N/A N/A wait2 send N/A N/A N/A eventlet sleep 0 N/A N/A N/A N/A N/A self assertFalse N/A N/A done2 ready N/A N/A N/A N/A wait1 send N/A N/A N/A done1 wait N/A N/A N/A eventlet sleep 0 N/A N/A N/A self assertTrue N/A N/A done2 ready N/A test_different_fname_concurrency N/A N/A self N/A N/A N/A Ensures that two different fname caches are concurrent N/A conn N/A connection LibvirtConnection N/A wait1 N/A N/A N/A eventlet event Event N/A done1 N/A N/A N/A eventlet event Event N/A N/A N/A eventlet spawn N/A conn _cache_image _concurrency target fname2 False wait1 done1 N/A wait2 N/A N/A N/A eventlet event Event N/A done2 N/A N/A N/A eventlet event Event N/A N/A N/A eventlet spawn N/A conn _cache_image _concurrency target fname1 False wait2 done2 N/A N/A N/A wait2 send N/A N/A N/A eventlet sleep 0 N/A N/A N/A N/A N/A self assertTrue N/A N/A done2 ready N/A N/A N/A N/A wait1 send N/A N/A N/A eventlet sleep 0 N/A N/A LibvirtConnTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super LibvirtConnTestCase self setUp N/A N/A N/A connection _late_load_cheetah N/A N/A N/A self flags fake_call True N/A N/A self user_id fake N/A N/A self project_id fake N/A N/A self context N/A N/A context RequestContext N/A self user_id N/A self project_id N/A N/A self network N/A N/A utils import_object N/A FLAGS network_manager N/A N/A self context N/A N/A context get_admin_context N/A N/A N/A self flags instances_path N/A N/A self call_libvirt_dependant_setup False N/A N/A self test_ip 10.11.12.13 N/A N/A test_instance N/A memory_kb basepath bridge_name vcpus project_id bridge image_ref local_gb instance_type_id 1024000 /some/path br100 2 fake br101 123456 20 5 lazy_load_library_exists N/A N/A self N/A N/A N/A check if libvirt is available. N/A N/A N/A libvirt N/A libxml2 N/A N/A N/A ImportError N/A N/A False N/A libvirt N/A libvirt N/A __import__ libvirt N/A N/A connection libvirt N/A __import__ libvirt N/A N/A connection libxml2 N/A __import__ libxml2 N/A True N/A create_fake_libvirt_mock N/A N/A self N/A kwargs N/A N/A Defining mocks for LibvirtConnection(libvirt is not used). FakeLibvirtConnection N/A object N/A defineXML N/A N/A self xml N/A N/A N/A N/A FakeVirtDomain N/A N/A FakeIptablesFirewallDriver N/A object N/A __init__ N/A N/A self N/A kwargs N/A N/A N/A setattr N/A N/A self key val N/A N/A N/A N/A N/A self __setattr__ key val N/A N/A FakeVIFDriver N/A object N/A __init__ N/A N/A self N/A kwargs N/A N/A N/A setattr N/A N/A self key val N/A N/A N/A N/A N/A self __setattr__ key val N/A plug N/A N/A self instance network mapping N/A N/A N/A N/A id bridge_name mac_address ip_address dhcp_server extra_params fake fake fake fake fake fake N/A N/A N/A fake N/A FakeLibvirtConnection N/A fakeip FakeIptablesFirewallDriver N/A fakevif N/A FakeVIFDriver N/A N/A key val N/A N/A kwargs items N/A N/A N/A N/A fake __setattr__ key val N/A N/A N/A N/A self mox StubOutWithMock N/A connection utils import_class N/A N/A N/A N/A N/A N/A connection utils import_class N/A N/A mox IgnoreArg AndReturn fakeip N/A N/A N/A N/A self mox StubOutWithMock N/A connection utils import_object N/A N/A N/A N/A N/A N/A connection utils import_object N/A N/A mox IgnoreArg AndReturn fakevif N/A N/A N/A N/A self mox StubOutWithMock N/A connection LibvirtConnection _conn N/A N/A N/A connection LibvirtConnection _conn fake N/A fake_lookup N/A N/A self instance_name N/A N/A N/A N/A FakeVirtDomain N/A fake_execute N/A N/A self N/A args N/A N/A N/A N/A N/A open N/A args N/A -1 a close N/A create_service N/A N/A self N/A kwargs N/A N/A service_ref N/A host binary topic report_count availability_zone N/A N/A kwargs get host dummy nova-compute compute 0 zone N/A N/A N/A db service_create N/A N/A context get_admin_context service_ref N/A test_preparing_xml_info N/A N/A self N/A N/A N/A conn N/A N/A connection LibvirtConnection True N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A result N/A N/A conn _prepare_xml_info instance_ref N/A _create_network_info False N/A N/A N/A self assertTrue N/A N/A len N/A result N/A nics 1 N/A result N/A N/A conn _prepare_xml_info instance_ref N/A _create_network_info 2 False N/A N/A N/A self assertTrue N/A N/A len N/A result N/A nics 2 N/A test_xml_and_uri_no_ramdisk_no_kernel N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A N/A N/A self _check_xml_and_uri instance_data expect_kernel False expect_ramdisk False N/A test_xml_and_uri_no_ramdisk N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A N/A instance_data N/A kernel_id aki-deadbeef N/A N/A N/A self _check_xml_and_uri instance_data expect_kernel True expect_ramdisk False N/A test_xml_and_uri_no_kernel N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A N/A instance_data N/A ramdisk_id ari-deadbeef N/A N/A N/A self _check_xml_and_uri instance_data expect_kernel False expect_ramdisk False N/A test_xml_and_uri N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A N/A instance_data N/A ramdisk_id ari-deadbeef N/A N/A instance_data N/A kernel_id aki-deadbeef N/A N/A N/A self _check_xml_and_uri instance_data expect_kernel True expect_ramdisk True N/A test_xml_and_uri_rescue N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A N/A instance_data N/A ramdisk_id ari-deadbeef N/A N/A instance_data N/A kernel_id aki-deadbeef N/A N/A N/A self _check_xml_and_uri instance_data expect_kernel True expect_ramdisk True rescue True N/A test_lxc_container_and_uri N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A N/A N/A self _check_xml_and_container instance_data N/A test_snapshot_in_ami_format N/A N/A self N/A N/A N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A N/A N/A self flags image_service nova.image.fake.FakeImageService N/A image_service N/A N/A utils import_object N/A FLAGS image_service N/A test_instance N/A N/A copy deepcopy N/A self test_instance N/A N/A test_instance N/A image_ref 3 N/A instance_ref N/A N/A db instance_create N/A self context test_instance N/A properties N/A instance_id user_id N/A instance_ref N/A id N/A str N/A N/A self context user_id N/A snapshot_name test-snap N/A sent_meta N/A name is_public status properties snapshot_name False creating properties N/A recv_meta N/A N/A image_service create context sent_meta N/A N/A N/A N/A self mox StubOutWithMock N/A connection LibvirtConnection _conn N/A N/A N/A N/A connection LibvirtConnection _conn lookupByName N/A self fake_lookup N/A N/A N/A N/A self mox StubOutWithMock N/A connection utils execute N/A N/A N/A connection utils execute N/A self fake_execute N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A conn snapshot N/A self context instance_ref N/A recv_meta N/A id N/A snapshot N/A N/A image_service show context N/A recv_meta N/A id N/A N/A N/A self assertEquals N/A N/A snapshot N/A properties N/A image_state available N/A N/A N/A self assertEquals N/A snapshot N/A status active N/A N/A N/A self assertEquals N/A snapshot N/A disk_format ami N/A N/A N/A self assertEquals N/A snapshot N/A name snapshot_name N/A test_snapshot_in_raw_format N/A N/A self N/A N/A N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A N/A N/A self flags image_service nova.image.fake.FakeImageService N/A image_service N/A N/A utils import_object N/A FLAGS image_service N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A properties N/A instance_id user_id N/A instance_ref N/A id N/A str N/A N/A self context user_id N/A snapshot_name test-snap N/A sent_meta N/A name is_public status properties snapshot_name False creating properties N/A recv_meta N/A N/A image_service create context sent_meta N/A N/A N/A N/A self mox StubOutWithMock N/A connection LibvirtConnection _conn N/A N/A N/A N/A connection LibvirtConnection _conn lookupByName N/A self fake_lookup N/A N/A N/A N/A self mox StubOutWithMock N/A connection utils execute N/A N/A N/A connection utils execute N/A self fake_execute N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A conn snapshot N/A self context instance_ref N/A recv_meta N/A id N/A snapshot N/A N/A image_service show context N/A recv_meta N/A id N/A N/A N/A self assertEquals N/A N/A snapshot N/A properties N/A image_state available N/A N/A N/A self assertEquals N/A snapshot N/A status active N/A N/A N/A self assertEquals N/A snapshot N/A disk_format raw N/A N/A N/A self assertEquals N/A snapshot N/A name snapshot_name N/A test_snapshot_in_qcow2_format N/A N/A self N/A N/A N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A N/A N/A self flags image_service nova.image.fake.FakeImageService N/A N/A N/A self flags snapshot_image_format qcow2 N/A image_service N/A N/A utils import_object N/A FLAGS image_service N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A properties N/A instance_id user_id N/A instance_ref N/A id N/A str N/A N/A self context user_id N/A snapshot_name test-snap N/A sent_meta N/A name is_public status properties snapshot_name False creating properties N/A recv_meta N/A N/A image_service create context sent_meta N/A N/A N/A N/A self mox StubOutWithMock N/A connection LibvirtConnection _conn N/A N/A N/A N/A connection LibvirtConnection _conn lookupByName N/A self fake_lookup N/A N/A N/A N/A self mox StubOutWithMock N/A connection utils execute N/A N/A N/A connection utils execute N/A self fake_execute N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A conn snapshot N/A self context instance_ref N/A recv_meta N/A id N/A snapshot N/A N/A image_service show context N/A recv_meta N/A id N/A N/A N/A self assertEquals N/A N/A snapshot N/A properties N/A image_state available N/A N/A N/A self assertEquals N/A snapshot N/A status active N/A N/A N/A self assertEquals N/A snapshot N/A disk_format qcow2 N/A N/A N/A self assertEquals N/A snapshot N/A name snapshot_name N/A test_snapshot_no_image_architecture N/A N/A self N/A N/A N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A N/A N/A self flags image_service nova.image.fake.FakeImageService N/A image_service N/A N/A utils import_object N/A FLAGS image_service N/A test_instance N/A N/A copy deepcopy N/A self test_instance N/A N/A test_instance N/A image_ref 2 N/A instance_ref N/A N/A db instance_create N/A self context test_instance N/A properties N/A instance_id user_id N/A instance_ref N/A id N/A str N/A N/A self context user_id N/A snapshot_name test-snap N/A sent_meta N/A name is_public status properties snapshot_name False creating properties N/A recv_meta N/A N/A image_service create context sent_meta N/A N/A N/A N/A self mox StubOutWithMock N/A connection LibvirtConnection _conn N/A N/A N/A N/A connection LibvirtConnection _conn lookupByName N/A self fake_lookup N/A N/A N/A N/A self mox StubOutWithMock N/A connection utils execute N/A N/A N/A connection utils execute N/A self fake_execute N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A conn snapshot N/A self context instance_ref N/A recv_meta N/A id N/A snapshot N/A N/A image_service show context N/A recv_meta N/A id N/A N/A N/A self assertEquals N/A N/A snapshot N/A properties N/A image_state available N/A N/A N/A self assertEquals N/A snapshot N/A status active N/A N/A N/A self assertEquals N/A snapshot N/A name snapshot_name N/A test_attach_invalid_device N/A N/A self N/A N/A N/A N/A N/A self create_fake_libvirt_mock N/A N/A N/A N/A connection LibvirtConnection _conn lookupByName N/A self fake_lookup N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A self assertRaises N/A exception InvalidDevicePath N/A conn attach_volume fake bad/device/path /dev/fake N/A test_multi_nic N/A N/A self N/A N/A N/A instance_data N/A dict N/A self test_instance N/A network_info N/A _create_network_info 2 N/A conn N/A N/A connection LibvirtConnection True N/A instance_ref N/A N/A db instance_create N/A self context instance_data N/A xml N/A N/A conn to_xml instance_ref network_info False N/A tree N/A xml_to_tree xml N/A interfaces N/A N/A tree findall ./devices/interface N/A N/A N/A self assertEquals N/A len interfaces 2 N/A parameters N/A N/A N/A interfaces N/A 0 findall ./filterref/parameter N/A N/A N/A self assertEquals N/A N/A N/A interfaces N/A 0 get type bridge N/A N/A N/A self assertEquals N/A N/A N/A parameters N/A 0 get name IP N/A N/A N/A self assertEquals N/A N/A N/A parameters N/A 0 get value 10.11.12.13 N/A N/A N/A self assertEquals N/A N/A N/A parameters N/A 1 get name DHCPSERVER N/A N/A N/A self assertEquals N/A N/A N/A parameters N/A 1 get value 10.0.0.1 N/A _check_xml_and_container N/A N/A self instance N/A N/A N/A user_context N/A N/A context RequestContext N/A self user_id N/A self project_id N/A instance_ref N/A N/A db instance_create user_context instance N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip N/A N/A N/A self flags libvirt_type lxc N/A conn N/A N/A connection LibvirtConnection True N/A uri N/A N/A conn get_uri N/A N/A N/A self assertEquals uri lxc:/// N/A network_info N/A _create_network_info N/A xml N/A N/A conn to_xml instance_ref network_info N/A tree N/A xml_to_tree xml N/A check N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find . get type lxc N/A N/A N/A N/A t N/A N/A N/A N/A t find ./os/type text exe N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find ./devices/filesystem/target get dir / N/A N/A i N/A check expected_result N/A enumerate check N/A N/A N/A N/A self assertEqual N/A check tree expected_result N/A %s failed common check %d N/A xml i N/A target N/A N/A N/A N/A tree find ./devices/filesystem/source get dir N/A N/A N/A self assertTrue N/A N/A len target 0 N/A _check_xml_and_uri N/A N/A self instance expect_ramdisk expect_kernel rescue N/A False N/A N/A user_context N/A N/A context RequestContext N/A self user_id N/A self project_id N/A instance_ref N/A N/A db instance_create user_context instance N/A network_ref N/A N/A N/A db project_get_networks N/A N/A context get_admin_context N/A self project_id N/A 0 N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip N/A type_uri_map N/A qemu kvm uml xen N/A qemu:///system N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find . get type qemu N/A N/A N/A N/A t N/A N/A N/A N/A t find ./os/type text hvm N/A N/A N/A N/A t N/A N/A N/A t find ./devices/emulator None N/A qemu:///system N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find . get type kvm N/A N/A N/A N/A t N/A N/A N/A N/A t find ./os/type text hvm N/A N/A N/A N/A t N/A N/A N/A t find ./devices/emulator None N/A uml:///system N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find . get type uml N/A N/A N/A N/A t N/A N/A N/A N/A t find ./os/type text uml N/A xen:/// N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find . get type xen N/A N/A N/A N/A t N/A N/A N/A N/A t find ./os/type text linux N/A hypervisor_type N/A qemu kvm xen N/A N/A check_list N/A N/A type_uri_map N/A hypervisor_type N/A 1 N/A rescue N/A N/A check N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A t find ./os/kernel text split / N/A 1 kernel.rescue N/A N/A N/A check_list append check N/A check N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A t find ./os/initrd text split / N/A 1 ramdisk.rescue N/A N/A N/A check_list append check N/A N/A expect_kernel N/A N/A check N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A t find ./os/kernel text split / N/A 1 kernel N/A N/A check N/A N/A N/A N/A t N/A N/A N/A t find ./os/kernel None N/A N/A N/A check_list append check N/A expect_ramdisk N/A N/A check N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A t find ./os/initrd text split / N/A 1 ramdisk N/A N/A check N/A N/A N/A N/A t N/A N/A N/A t find ./os/initrd None N/A N/A N/A check_list append check N/A parameter ./devices/interface/filterref/parameter N/A common_checks N/A N/A N/A N/A N/A t N/A N/A N/A N/A t find . tag domain N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find parameter get name IP N/A N/A N/A N/A t N/A N/A N/A N/A N/A t find parameter get value 10.11.12.13 N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A t findall parameter N/A 1 get name DHCPSERVER N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A t findall parameter N/A 1 get value 10.0.0.1 N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A N/A t find ./devices/serial/source get path split / N/A 1 console.log N/A N/A N/A N/A t N/A N/A N/A N/A t find ./memory text 2097152 N/A rescue N/A N/A common_checks N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A N/A N/A t findall ./devices/disk/source N/A 0 get file split / N/A 1 disk.rescue N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A N/A N/A t findall ./devices/disk/source N/A 1 get file split / N/A 1 disk N/A N/A common_checks N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A N/A N/A t findall ./devices/disk/source N/A 0 get file split / N/A 1 disk N/A common_checks N/A N/A N/A N/A N/A t N/A N/A N/A N/A N/A N/A N/A N/A N/A t findall ./devices/disk/source N/A 1 get file split / N/A 1 disk.local N/A N/A libvirt_type N/A expected_uri checks N/A N/A type_uri_map iteritems N/A N/A N/A N/A self flags libvirt_type libvirt_type N/A conn N/A N/A connection LibvirtConnection True N/A uri N/A N/A conn get_uri N/A N/A N/A self assertEquals uri expected_uri N/A network_info N/A _create_network_info N/A xml N/A N/A conn to_xml instance_ref network_info rescue N/A tree N/A xml_to_tree xml N/A N/A i N/A check expected_result N/A enumerate checks N/A N/A N/A N/A self assertEqual N/A check tree expected_result N/A %s != %s failed check %d N/A N/A check tree expected_result i N/A N/A i N/A check expected_result N/A enumerate common_checks N/A N/A N/A N/A self assertEqual N/A check tree expected_result N/A %s != %s failed common check %d N/A N/A check tree expected_result i N/A testuri something completely different N/A N/A N/A self flags libvirt_uri testuri N/A N/A libvirt_type N/A expected_uri checks N/A N/A type_uri_map iteritems N/A N/A N/A N/A self flags libvirt_type libvirt_type N/A conn N/A N/A connection LibvirtConnection True N/A uri N/A N/A conn get_uri N/A N/A N/A self assertEquals uri testuri N/A N/A N/A db instance_destroy user_context N/A instance_ref N/A id N/A test_update_available_resource_works_correctly N/A N/A self N/A N/A N/A Confirm compute_node table is updated successfully. N/A N/A N/A self flags instances_path . getVersion N/A N/A N/A N/A N/A 12003 N/A getType N/A N/A N/A N/A N/A qemu N/A listDomainsID N/A N/A N/A N/A N/A N/A N/A N/A service_ref N/A N/A self create_service host dummy N/A N/A N/A self create_fake_libvirt_mock getVersion getVersion getType getType listDomainsID listDomainsID N/A N/A N/A N/A self mox StubOutWithMock N/A connection LibvirtConnection get_cpu_info N/A N/A N/A N/A N/A N/A connection LibvirtConnection get_cpu_info AndReturn cpuinfo N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A conn update_available_resource N/A self context dummy N/A service_ref N/A N/A db service_get N/A self context N/A service_ref N/A id N/A compute_node N/A N/A service_ref N/A compute_node N/A 0 N/A N/A N/A N/A N/A sys platform upper LINUX2 N/A N/A N/A N/A self assertTrue N/A N/A compute_node N/A vcpus 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A memory_mb 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A local_gb 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A vcpus_used 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A memory_mb_used 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A local_gb_used 0 N/A N/A N/A self assertTrue N/A N/A len N/A compute_node N/A hypervisor_type 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A hypervisor_version 0 N/A N/A N/A N/A self assertTrue N/A N/A compute_node N/A vcpus 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A memory_mb 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A local_gb 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A vcpus_used 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A memory_mb_used 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A local_gb_used 0 N/A N/A N/A self assertTrue N/A N/A len N/A compute_node N/A hypervisor_type 0 N/A N/A N/A self assertTrue N/A N/A compute_node N/A hypervisor_version 0 N/A N/A N/A db service_destroy N/A self context N/A service_ref N/A id N/A test_update_resource_info_no_compute_record_found N/A N/A self N/A N/A N/A Raise exception if no recorde found on services table. N/A N/A N/A self flags instances_path . N/A N/A N/A self create_fake_libvirt_mock N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A self assertRaises N/A exception ComputeServiceUnavailable N/A conn update_available_resource N/A self context dummy N/A test_ensure_filtering_rules_for_instance_timeout N/A N/A self N/A N/A N/A ensure_filtering_fules_for_instance() finishes with timeout. N/A N/A N/A N/A self lazy_load_library_exists N/A N/A fake_none N/A N/A self N/A args N/A N/A N/A fake_raise N/A N/A self N/A N/A N/A N/A N/A libvirt libvirtError ERR N/A FakeTime N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self counter 0 N/A sleep N/A N/A self t N/A N/A N/A N/A self counter t N/A N/A N/A fake_timer N/A FakeTime N/A N/A N/A self create_fake_libvirt_mock N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A network_info N/A _create_network_info N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A N/A conn firewall_driver setattr setup_basic_filtering fake_none N/A N/A N/A N/A conn firewall_driver setattr prepare_instance_filter fake_none N/A N/A N/A N/A conn firewall_driver setattr instance_filter_exists fake_none N/A N/A N/A conn ensure_filtering_rules_for_instance instance_ref network_info time fake_timer N/A N/A N/A N/A exception Error N/A e N/A N/A c1 N/A 0 N/A N/A N/A e message find Timeout migrating for N/A N/A N/A self assertTrue c1 N/A N/A N/A self assertEqual 29 N/A fake_timer counter Didn't wait the expected amount of time N/A N/A N/A db instance_destroy N/A self context N/A instance_ref N/A id N/A test_live_migration_raises_exception N/A N/A self N/A N/A N/A Confirms recover method is called when exceptions are raised. N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A N/A self compute N/A N/A utils import_object N/A FLAGS compute_manager N/A instance_dict N/A host power_state vm_state fake N/A power_state RUNNING N/A vm_states ACTIVE N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A instance_ref N/A N/A db instance_update N/A self context N/A instance_ref N/A id instance_dict N/A vol_dict N/A status size migrating 1 N/A volume_ref N/A N/A db volume_create N/A self context vol_dict N/A N/A N/A db volume_attached N/A self context N/A volume_ref N/A id N/A instance_ref N/A id /dev/fake N/A vdmock N/A N/A N/A self mox CreateMock N/A libvirt virDomain N/A N/A N/A N/A self mox StubOutWithMock vdmock migrateToURI N/A N/A N/A N/A N/A vdmock migrateToURI N/A N/A FLAGS live_migration_uri dest N/A N/A mox IgnoreArg None N/A FLAGS live_migration_bandwidth AndRaise N/A N/A libvirt libvirtError ERR fake_lookup N/A N/A instance_name N/A N/A N/A N/A instance_name N/A instance_ref name N/A N/A vdmock N/A N/A N/A N/A self create_fake_libvirt_mock lookupByName fake_lookup N/A N/A N/A N/A self mox StubOutWithMock N/A self compute rollback_live_migration N/A N/A N/A N/A self compute rollback_live_migration N/A self context instance_ref dest False N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A self assertRaises N/A libvirt libvirtError N/A conn _live_migration N/A self context instance_ref dest False N/A N/A self compute rollback_live_migration N/A instance_ref N/A N/A db instance_get N/A self context N/A instance_ref N/A id N/A N/A N/A self assertTrue N/A N/A instance_ref N/A vm_state N/A vm_states ACTIVE N/A N/A N/A self assertTrue N/A N/A instance_ref N/A power_state N/A power_state RUNNING N/A volume_ref N/A N/A db volume_get N/A self context N/A volume_ref N/A id N/A N/A N/A self assertTrue N/A N/A volume_ref N/A status in-use N/A N/A N/A db volume_destroy N/A self context N/A volume_ref N/A id N/A N/A N/A db instance_destroy N/A self context N/A instance_ref N/A id N/A test_pre_block_migration_works_correctly N/A N/A self N/A N/A N/A Confirms pre_block_migration works correctly. N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A tmpdir N/A N/A tempfile mkdtemp N/A store N/A FLAGS instances_path N/A N/A FLAGS instances_path tmpdir N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A dummyjson [{"path": "%s/disk", "local_gb": "10G", "type": "raw", "backing_file": ""}] N/A N/A N/A N/A self mox StubOutWithMock utils execute N/A N/A N/A utils execute qemu-img create -f raw N/A %s/%s/disk N/A tmpdir N/A instance_ref name 10G N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A conn pre_block_migration N/A self context instance_ref N/A dummyjson tmpdir N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A %s/%s/ N/A tmpdir N/A instance_ref name N/A N/A N/A shutil rmtree tmpdir N/A N/A N/A db instance_destroy N/A self context N/A instance_ref N/A id N/A N/A FLAGS instances_path store N/A test_get_instance_disk_info_works_correctly N/A N/A self N/A N/A N/A Confirms pre_block_migration works correctly. N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A instance_ref N/A N/A db instance_create N/A self context N/A self test_instance N/A dummyxml <domain type='kvm'><name>instance-0000000a</name><devices><disk type='file'><driver name='qemu' type='raw'/><source file='/test/disk'/><target dev='vda' bus='virtio'/></disk><disk type='file'><driver name='qemu' type='qcow2'/><source file='/test/disk.local'/><target dev='vdb' bus='virtio'/></disk></devices></domain> N/A ret image: /test/disk
file format: raw
virtual size: 20G (21474836480 bytes)
disk size: 3.1G
disk size: 102M
cluster_size: 2097152
backing file: /test/dummy (actual path: /backing/file)
 N/A vdmock N/A N/A N/A self mox CreateMock N/A libvirt virDomain N/A N/A N/A N/A self mox StubOutWithMock vdmock XMLDesc N/A N/A N/A N/A N/A vdmock XMLDesc 0 AndReturn dummyxml fake_lookup N/A N/A instance_name N/A N/A N/A N/A instance_name N/A instance_ref name N/A N/A vdmock N/A N/A N/A N/A self create_fake_libvirt_mock lookupByName fake_lookup N/A N/A N/A N/A self mox StubOutWithMock N/A os path getsize N/A N/A N/A N/A N/A N/A os path getsize /test/disk AndReturn N/A N/A N/A 10 1024 1024 1024 N/A N/A N/A N/A self mox StubOutWithMock utils execute N/A N/A N/A N/A N/A utils execute qemu-img info /test/disk.local AndReturn N/A ret N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A info N/A N/A conn get_instance_disk_info N/A self context instance_ref N/A info N/A N/A utils loads info N/A N/A N/A self assertTrue N/A N/A N/A N/A info N/A 0 N/A type raw N/A N/A N/A info N/A 1 N/A type qcow2 N/A N/A N/A info N/A 0 N/A path /test/disk N/A N/A N/A info N/A 1 N/A path /test/disk.local N/A N/A N/A info N/A 0 N/A local_gb 10G N/A N/A N/A info N/A 1 N/A local_gb 20G N/A N/A N/A info N/A 0 N/A backing_file N/A N/A N/A info N/A 1 N/A backing_file file N/A N/A N/A db instance_destroy N/A self context N/A instance_ref N/A id N/A test_spawn_with_network_info N/A N/A self N/A N/A N/A N/A N/A N/A self lazy_load_library_exists N/A N/A fake_none N/A N/A self instance N/A N/A N/A N/A N/A N/A N/A self create_fake_libvirt_mock N/A instance N/A N/A db instance_create N/A self context N/A self test_instance N/A N/A N/A N/A self mox ReplayAll N/A conn N/A N/A connection LibvirtConnection False N/A N/A N/A N/A conn firewall_driver setattr setup_basic_filtering fake_none N/A N/A N/A N/A conn firewall_driver setattr prepare_instance_filter fake_none N/A network_info N/A _create_network_info N/A N/A N/A N/A N/A conn spawn N/A self context instance network_info N/A N/A N/A Exception N/A e N/A N/A count N/A 0 N/A N/A N/A str N/A e message find Unexpected method call N/A N/A N/A shutil rmtree N/A N/A N/A os path join N/A FLAGS instances_path N/A instance name N/A N/A N/A shutil rmtree N/A N/A N/A os path join N/A FLAGS instances_path _base N/A N/A N/A self assertTrue count N/A test_get_host_ip_addr N/A N/A self N/A N/A N/A conn N/A N/A connection LibvirtConnection False N/A ip N/A N/A conn get_host_ip_addr N/A N/A N/A self assertEquals ip N/A FLAGS my_ip N/A test_volume_in_mapping N/A N/A self N/A N/A N/A conn N/A N/A connection LibvirtConnection False N/A swap N/A device_name swap_size /dev/sdb 1 N/A ephemerals N/A N/A num virtual_name device_name size 0 ephemeral0 /dev/sdc1 1 N/A num virtual_name device_name size 2 ephemeral2 /dev/sdd 1 N/A block_device_mapping N/A N/A mount_device device_path /dev/sde fake_device N/A mount_device device_path /dev/sdf fake_device N/A block_device_info N/A root_device_name swap ephemerals block_device_mapping /dev/sda swap ephemerals block_device_mapping _assert_volume_in_mapping N/A N/A device_name true_or_false N/A N/A N/A N/A N/A self assertEquals N/A N/A conn _volume_in_mapping device_name block_device_info true_or_false N/A N/A N/A _assert_volume_in_mapping sda False N/A N/A _assert_volume_in_mapping sdb True N/A N/A _assert_volume_in_mapping sdc1 True N/A N/A _assert_volume_in_mapping sdd True N/A N/A _assert_volume_in_mapping sde True N/A N/A _assert_volume_in_mapping sdf True N/A N/A _assert_volume_in_mapping sdg False N/A N/A _assert_volume_in_mapping sdh1 False N/A N/A NWFilterFakes N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self filters N/A N/A nwfilterLookupByName N/A N/A self name N/A N/A N/A N/A name N/A self filters N/A N/A N/A N/A self filters N/A name N/A N/A N/A libvirt libvirtError Filter Not Found N/A filterDefineXMLMock N/A N/A self xml N/A N/A FakeNWFilterInternal N/A N/A __init__ N/A N/A self parent name N/A N/A N/A N/A self name name N/A N/A self parent parent N/A undefine N/A N/A self N/A N/A N/A N/A N/A N/A self parent filters N/A N/A self name N/A N/A N/A N/A tree N/A xml_to_tree xml N/A name N/A N/A tree get name N/A N/A name N/A self filters N/A N/A N/A N/A self filters N/A name N/A FakeNWFilterInternal self name N/A True N/A N/A IptablesFirewallTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super IptablesFirewallTestCase self setUp N/A N/A self user_id fake N/A N/A self project_id fake N/A N/A self context N/A N/A context RequestContext N/A self user_id N/A self project_id N/A N/A self network N/A N/A utils import_object N/A FLAGS network_manager FakeLibvirtConnection N/A object N/A nwfilterDefineXML N/A N/A N/A args kwargs N/A N/A setup_basic_rules in nwfilter calls this. N/A N/A N/A N/A N/A self fake_libvirt_connection N/A FakeLibvirtConnection N/A N/A self test_ip 10.11.12.13 N/A N/A self fw N/A N/A firewall IptablesFirewallDriver get_connection N/A N/A N/A N/A N/A self fake_libvirt_connection N/A lazy_load_library_exists N/A N/A self N/A N/A N/A check if libvirt is available. N/A N/A N/A libvirt N/A libxml2 N/A N/A N/A ImportError N/A N/A False N/A libvirt N/A libvirt N/A __import__ libvirt N/A N/A connection libvirt N/A __import__ libvirt N/A N/A connection libxml2 N/A __import__ libxml2 N/A True N/A N/A in_nat_rules N/A # Generated by iptables-save v1.4.10 on Sat Feb 19 00:03:19 2011 *nat :PREROUTING ACCEPT [1170:189210] :INPUT ACCEPT [844:71028] :OUTPUT ACCEPT [5149:405186] :POSTROUTING ACCEPT [5063:386098] N/A in_filter_rules N/A # Generated by iptables-save v1.4.4 on Mon Dec  6 11:54:13 2010 *filter :INPUT ACCEPT [969615:281627771] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [915599:63811649] :nova-block-ipv4 - [0:0] -A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT  -A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT  -A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT  -A FORWARD -i virbr0 -o virbr0 -j ACCEPT  -A FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable  -A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable  COMMIT # Completed on Mon Dec  6 11:54:13 2010 N/A in6_filter_rules N/A # Generated by ip6tables-save v1.4.4 on Tue Jan 18 23:47:56 2011 *filter :INPUT ACCEPT [349155:75810423] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [349256:75777230] COMMIT # Completed on Tue Jan 18 23:47:56 2011 _create_instance_ref N/A N/A self N/A N/A N/A N/A N/A db instance_create N/A self context N/A user_id project_id instance_type_id fake fake 1 N/A test_static_filters N/A N/A self N/A N/A N/A instance_ref N/A N/A self _create_instance_ref N/A src_instance_ref N/A N/A self _create_instance_ref N/A src_ip 10.11.12.14 N/A src_mac 56:12:12:12:12:13 N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip src_mac N/A N/A _setup_networking N/A src_instance_ref N/A id src_ip N/A admin_ctxt N/A N/A context get_admin_context N/A secgroup N/A N/A db security_group_create admin_ctxt N/A user_id project_id name description fake fake testgroup test group N/A src_secgroup N/A N/A db security_group_create admin_ctxt N/A user_id project_id name description fake fake testsourcegroup src group N/A N/A N/A db security_group_rule_create admin_ctxt N/A parent_group_id protocol from_port to_port cidr N/A secgroup N/A id icmp -1 -1 192.168.11.0/24 N/A N/A N/A db security_group_rule_create admin_ctxt N/A parent_group_id protocol from_port to_port cidr N/A secgroup N/A id icmp 8 -1 192.168.11.0/24 N/A N/A N/A db security_group_rule_create admin_ctxt N/A parent_group_id protocol from_port to_port cidr N/A secgroup N/A id tcp 80 81 192.168.10.0/24 N/A N/A N/A db security_group_rule_create admin_ctxt N/A parent_group_id protocol from_port to_port group_id N/A secgroup N/A id tcp 80 81 N/A src_secgroup N/A id N/A N/A N/A db instance_add_security_group admin_ctxt N/A instance_ref N/A id N/A secgroup N/A id N/A N/A N/A db instance_add_security_group admin_ctxt N/A src_instance_ref N/A id N/A src_secgroup N/A id N/A instance_ref N/A N/A db instance_get admin_ctxt N/A instance_ref N/A id N/A src_instance_ref N/A N/A db instance_get admin_ctxt N/A src_instance_ref N/A id fake_iptables_execute N/A N/A N/A cmd kwargs N/A N/A process_input N/A N/A kwargs get process_input None N/A N/A cmd N/A ip6tables-save -t filter N/A N/A N/A N/A N/A join N/A self in6_filter_rules None N/A N/A cmd N/A iptables-save -t filter N/A N/A N/A N/A N/A join N/A self in_filter_rules None N/A N/A cmd N/A iptables-save -t nat N/A N/A N/A N/A N/A join N/A self in_nat_rules None N/A N/A cmd N/A iptables-restore N/A N/A lines N/A N/A process_input split N/A N/A *filter lines N/A N/A N/A self out_rules lines N/A N/A N/A N/A cmd N/A ip6tables-restore N/A N/A lines N/A N/A process_input split N/A N/A *filter lines N/A N/A N/A self out6_rules lines N/A N/A N/A cmd kwargs N/A nova.network linux_net N/A N/A N/A linux_net iptables_manager execute fake_iptables_execute N/A network_info N/A _create_network_info N/A N/A N/A N/A self fw prepare_instance_filter instance_ref network_info N/A N/A N/A N/A self fw apply_instance_filter instance_ref network_info N/A in_rules N/A filter N/A N/A N/A l N/A N/A N/A N/A l startswith # N/A self in_filter_rules N/A rule in_rules N/A N/A N/A N/A nova rule N/A N/A N/A N/A self assertTrue N/A rule N/A self out_rules N/A Rule went missing: %s rule N/A instance_chain None N/A rule N/A self out_rules N/A N/A N/A -d 10.11.12.13 -j rule N/A N/A instance_chain N/A N/A N/A rule split N/A -1 N/A N/A N/A N/A self assertTrue instance_chain The instance chain wasn't added N/A security_group_chain None N/A rule N/A self out_rules N/A N/A N/A N/A -A %s -j instance_chain rule N/A N/A security_group_chain N/A N/A N/A rule split N/A -1 N/A N/A N/A N/A self assertTrue security_group_chain The security group chain wasn't added N/A regex N/A N/A re compile -A .* -j ACCEPT -p icmp -s 192.168.11.0/24 N/A N/A N/A self assertTrue N/A N/A len N/A filter N/A regex match N/A self out_rules 0 ICMP acceptance rule wasn't added N/A regex N/A N/A re compile -A .* -j ACCEPT -p icmp -m icmp --icmp-type 8 -s 192.168.11.0/24 N/A N/A N/A self assertTrue N/A N/A len N/A filter N/A regex match N/A self out_rules 0 ICMP Echo Request acceptance rule wasn't added N/A regex N/A N/A re compile N/A -A .* -j ACCEPT -p tcp -m multiport --dports 80:81 -s %s N/A src_ip N/A N/A N/A self assertTrue N/A N/A len N/A filter N/A regex match N/A self out_rules 0 TCP port 80/81 acceptance rule wasn't added N/A regex N/A N/A re compile -A .* -j ACCEPT -p tcp -m multiport --dports 80:81 -s 192.168.10.0/24 N/A N/A N/A self assertTrue N/A N/A len N/A filter N/A regex match N/A self out_rules 0 TCP port 80/81 acceptance rule wasn't added N/A N/A N/A db instance_destroy admin_ctxt N/A instance_ref N/A id N/A test_filters_for_instance_with_ip_v6 N/A N/A self N/A N/A N/A N/A N/A self flags use_ipv6 True N/A network_info N/A _create_network_info N/A N/A rulesv4 rulesv6 N/A N/A N/A self fw _filters_for_instance fake network_info N/A N/A N/A self assertEquals N/A len rulesv4 2 N/A N/A N/A self assertEquals N/A len rulesv6 3 N/A test_filters_for_instance_without_ip_v6 N/A N/A self N/A N/A N/A N/A N/A self flags use_ipv6 False N/A network_info N/A _create_network_info N/A N/A rulesv4 rulesv6 N/A N/A N/A self fw _filters_for_instance fake network_info N/A N/A N/A self assertEquals N/A len rulesv4 2 N/A N/A N/A self assertEquals N/A len rulesv6 0 N/A test_multinic_iptables N/A N/A self N/A N/A N/A ipv4_rules_per_network 2 N/A ipv6_rules_per_network 3 N/A networks_count 5 N/A instance_ref N/A N/A self _create_instance_ref N/A network_info N/A _create_network_info networks_count N/A ipv4_len N/A len N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A ipv6_len N/A len N/A N/A N/A N/A N/A self fw iptables ipv6 N/A filter rules N/A N/A inst_ipv4 inst_ipv6 N/A N/A N/A self fw instance_rules instance_ref network_info N/A N/A N/A N/A self fw prepare_instance_filter instance_ref network_info N/A ipv4 N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A ipv6 N/A N/A N/A N/A N/A self fw iptables ipv6 N/A filter rules N/A ipv4_network_rules N/A N/A N/A len ipv4 N/A len inst_ipv4 ipv4_len N/A ipv6_network_rules N/A N/A N/A len ipv6 N/A len inst_ipv6 ipv6_len N/A N/A N/A self assertEquals ipv4_network_rules N/A ipv4_rules_per_network networks_count N/A N/A N/A self assertEquals ipv6_network_rules N/A ipv6_rules_per_network networks_count N/A test_do_refresh_security_group_rules N/A N/A self N/A N/A N/A instance_ref N/A N/A self _create_instance_ref N/A N/A N/A N/A self mox StubOutWithMock N/A self fw add_filters_for_instance use_mock_anything True N/A N/A N/A N/A self fw prepare_instance_filter instance_ref N/A N/A mox IgnoreArg N/A N/A N/A N/A self fw instances N/A N/A instance_ref N/A id instance_ref N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A self fw do_refresh_security_group_rules fake N/A test_unfilter_instance_undefines_nwfilter N/A N/A self N/A N/A N/A N/A N/A N/A self lazy_load_library_exists N/A N/A N/A admin_ctxt N/A N/A context get_admin_context N/A fakefilter N/A NWFilterFakes N/A N/A N/A N/A N/A self fw nwfilter _conn nwfilterDefineXML N/A fakefilter filterDefineXMLMock N/A N/A N/A N/A N/A self fw nwfilter _conn nwfilterLookupByName N/A fakefilter nwfilterLookupByName N/A instance_ref N/A N/A self _create_instance_ref N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip N/A network_info N/A _create_network_info N/A N/A N/A N/A self fw setup_basic_filtering instance_ref network_info N/A N/A N/A N/A self fw prepare_instance_filter instance_ref network_info N/A N/A N/A N/A self fw apply_instance_filter instance_ref network_info N/A original_filter_count N/A len N/A fakefilter filters N/A N/A N/A N/A self fw unfilter_instance instance_ref network_info N/A N/A N/A self assertEqual N/A original_filter_count N/A len N/A fakefilter filters 1 N/A N/A N/A db instance_destroy admin_ctxt N/A instance_ref N/A id N/A test_provider_firewall_rules N/A N/A self N/A N/A N/A instance_ref N/A N/A self _create_instance_ref N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip N/A chain_name N/A inst-%s N/A instance_ref N/A id N/A network_info N/A _create_network_info 1 N/A N/A N/A N/A self fw setup_basic_filtering instance_ref network_info N/A N/A N/A self assertTrue N/A provider N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter chains N/A rules N/A rule N/A rule N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A N/A rule chain provider N/A N/A N/A self assertEqual 0 N/A len rules N/A admin_ctxt N/A N/A context get_admin_context N/A provider_fw0 N/A N/A db provider_fw_rule_create admin_ctxt N/A protocol cidr from_port to_port tcp 10.99.99.99/32 1 65535 N/A N/A N/A N/A self fw refresh_provider_fw_rules N/A rules N/A rule N/A rule N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A N/A rule chain provider N/A N/A N/A self assertEqual 1 N/A len rules N/A provider_fw1 N/A N/A db provider_fw_rule_create admin_ctxt N/A protocol cidr from_port to_port udp 10.99.99.99/32 1 65535 N/A N/A N/A N/A self fw refresh_provider_fw_rules N/A rules N/A rule N/A rule N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A N/A rule chain provider N/A N/A N/A self assertEqual 2 N/A len rules N/A N/A N/A N/A self fw prepare_instance_filter instance_ref network_info N/A N/A N/A N/A self fw apply_instance_filter instance_ref network_info N/A inst_rules N/A rule N/A rule N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A N/A rule chain chain_name N/A jump_rules N/A rule N/A rule inst_rules N/A -j N/A rule rule N/A provjump_rules N/A N/A rule jump_rules N/A N/A N/A N/A provider N/A rule rule N/A rule provjump_rules N/A N/A N/A N/A provjump_rules append rule N/A N/A N/A self assertEqual 1 N/A len provjump_rules N/A N/A N/A db provider_fw_rule_destroy admin_ctxt N/A provider_fw1 N/A id N/A N/A N/A N/A self fw refresh_provider_fw_rules N/A rules N/A rule N/A rule N/A N/A N/A N/A N/A self fw iptables ipv4 N/A filter rules N/A N/A rule chain provider N/A N/A N/A self assertEqual 1 N/A len rules N/A N/A NWFilterTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super NWFilterTestCase self setUp Mock N/A object N/A N/A N/A N/A N/A self user_id fake N/A N/A self project_id fake N/A N/A self context N/A N/A context RequestContext N/A self user_id N/A self project_id N/A N/A self fake_libvirt_connection N/A Mock N/A N/A self test_ip 10.11.12.13 N/A N/A self fw N/A N/A firewall NWFilterFirewall N/A N/A N/A N/A N/A self fake_libvirt_connection N/A test_cidr_rule_nwfilter_xml N/A N/A self N/A N/A N/A cloud_controller N/A N/A cloud CloudController N/A N/A N/A cloud_controller create_security_group N/A self context testgroup test group description N/A N/A N/A cloud_controller authorize_security_group_ingress N/A self context testgroup from_port 80 to_port 81 ip_protocol tcp cidr_ip 0.0.0.0/0 N/A security_group N/A N/A db security_group_get_by_name N/A self context fake testgroup N/A xml N/A N/A N/A self fw security_group_to_nwfilter_xml N/A security_group id N/A dom N/A xml_to_dom xml N/A N/A N/A self assertEqual N/A N/A dom firstChild tagName filter N/A rules N/A N/A dom getElementsByTagName rule N/A N/A N/A self assertEqual N/A len rules 1 N/A N/A N/A self assertEqual N/A N/A N/A rules N/A 0 getAttribute action accept N/A N/A N/A self assertEqual N/A N/A N/A rules N/A 0 getAttribute direction in N/A N/A N/A self assertTrue N/A N/A int N/A N/A N/A rules N/A 0 getAttribute priority 1000 N/A ip_conditions N/A N/A N/A rules N/A 0 getElementsByTagName tcp N/A N/A N/A self assertEqual N/A len ip_conditions 1 N/A N/A N/A self assertEqual N/A N/A N/A ip_conditions N/A 0 getAttribute srcipaddr 0.0.0.0 N/A N/A N/A self assertEqual N/A N/A N/A ip_conditions N/A 0 getAttribute srcipmask 0.0.0.0 N/A N/A N/A self assertEqual N/A N/A N/A ip_conditions N/A 0 getAttribute dstportstart 80 N/A N/A N/A self assertEqual N/A N/A N/A ip_conditions N/A 0 getAttribute dstportend 81 N/A N/A N/A self teardown_security_group N/A teardown_security_group N/A N/A self N/A N/A N/A cloud_controller N/A N/A cloud CloudController N/A N/A N/A cloud_controller delete_security_group N/A self context testgroup N/A setup_and_return_security_group N/A N/A self N/A N/A N/A cloud_controller N/A N/A cloud CloudController N/A N/A N/A cloud_controller create_security_group N/A self context testgroup test group description N/A N/A N/A cloud_controller authorize_security_group_ingress N/A self context testgroup from_port 80 to_port 81 ip_protocol tcp cidr_ip 0.0.0.0/0 N/A N/A N/A db security_group_get_by_name N/A self context fake testgroup N/A _create_instance N/A N/A self N/A N/A N/A N/A N/A db instance_create N/A self context N/A user_id project_id instance_type_id fake fake 1 N/A _create_instance_type N/A N/A self params N/A None N/A N/A Create a test instance N/A N/A params N/A N/A params N/A N/A context N/A N/A N/A self context elevated N/A inst N/A N/A N/A inst N/A name m1.small N/A N/A inst N/A memory_mb 1024 N/A N/A inst N/A vcpus 1 N/A N/A inst N/A local_gb 20 N/A N/A inst N/A flavorid 1 N/A N/A inst N/A swap 2048 N/A N/A inst N/A rxtx_quota 100 N/A N/A inst N/A rxtx_cap 200 N/A N/A N/A inst update params N/A N/A N/A N/A db instance_type_create context inst N/A id N/A test_creates_base_rule_first N/A N/A self N/A N/A N/A N/A self defined_filters N/A no-mac-spoofing no-ip-spoofing no-arp-spoofing allow-dhcp-server N/A N/A self recursive_depends N/A N/A f N/A self defined_filters N/A N/A N/A N/A self recursive_depends N/A f N/A _filterDefineXMLMock N/A N/A xml N/A N/A N/A dom N/A xml_to_dom xml N/A name N/A N/A N/A dom firstChild getAttribute name N/A N/A N/A self recursive_depends N/A name N/A N/A f N/A N/A dom getElementsByTagName filterref N/A N/A ref N/A N/A f getAttribute filter N/A N/A N/A self assertTrue N/A ref N/A self defined_filters N/A N/A %s referenced filter that does  not yet exist: %s N/A name ref N/A dependencies N/A N/A ref N/A N/A self recursive_depends N/A ref N/A N/A N/A self recursive_depends N/A name dependencies N/A N/A N/A N/A self defined_filters append name N/A True N/A N/A N/A N/A self fake_libvirt_connection nwfilterDefineXML _filterDefineXMLMock N/A instance_ref N/A N/A self _create_instance N/A inst_id N/A instance_ref N/A id N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip _ensure_all_called N/A N/A N/A N/A N/A instance_filter N/A nova-instance-%s-%s N/A N/A instance_ref N/A name fake N/A secgroup_filter N/A nova-secgroup-%s N/A N/A self security_group N/A id N/A required N/A secgroup_filter allow-dhcp-server no-arp-spoofing no-ip-spoofing no-mac-spoofing N/A N/A N/A N/A self assertTrue N/A required N/A N/A self recursive_depends N/A instance_filter N/A Instance's filter does not include %s required N/A N/A N/A self security_group N/A N/A self setup_and_return_security_group N/A N/A N/A db instance_add_security_group N/A self context inst_id N/A N/A self security_group id N/A instance N/A N/A db instance_get N/A self context inst_id N/A network_info N/A _create_network_info N/A N/A N/A N/A self fw setup_basic_filtering instance network_info N/A N/A N/A N/A self fw prepare_instance_filter instance network_info N/A N/A N/A N/A self fw apply_instance_filter instance network_info N/A N/A _ensure_all_called N/A N/A N/A self teardown_security_group N/A N/A N/A db instance_destroy N/A N/A context get_admin_context N/A instance_ref N/A id N/A test_create_network_filters N/A N/A self N/A N/A N/A instance_ref N/A N/A self _create_instance N/A network_info N/A _create_network_info 3 N/A result N/A N/A N/A self fw _create_network_filters instance_ref network_info fake N/A N/A N/A self assertEquals N/A len result 3 N/A test_unfilter_instance_undefines_nwfilters N/A N/A self N/A N/A N/A admin_ctxt N/A N/A context get_admin_context N/A fakefilter N/A NWFilterFakes N/A N/A N/A N/A self fw _conn nwfilterDefineXML N/A fakefilter filterDefineXMLMock N/A N/A N/A N/A self fw _conn nwfilterLookupByName N/A fakefilter nwfilterLookupByName N/A instance_ref N/A N/A self _create_instance N/A inst_id N/A instance_ref N/A id N/A N/A self security_group N/A N/A self setup_and_return_security_group N/A N/A N/A db instance_add_security_group N/A self context inst_id N/A N/A self security_group id N/A instance N/A N/A db instance_get N/A self context inst_id N/A N/A _setup_networking N/A instance_ref N/A id N/A self test_ip N/A network_info N/A _create_network_info N/A N/A N/A N/A self fw setup_basic_filtering instance network_info N/A N/A N/A N/A self fw prepare_instance_filter instance network_info N/A N/A N/A N/A self fw apply_instance_filter instance network_info N/A original_filter_count N/A len N/A fakefilter filters N/A N/A N/A N/A self fw unfilter_instance instance network_info N/A N/A N/A self assertEqual N/A original_filter_count N/A len N/A fakefilter filters 2 N/A N/A N/A db instance_destroy admin_ctxt N/A instance_ref N/A id N/A N/A