Module Expr Str Import alias Import alias Import alias Import alias Import alias identifier Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias identifier Expr Call NameLoad NameLoad ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ImportFrom alias identifier Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Dict Str Str Str Str Str Dict Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str Break If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Str Assign NameStore Dict Str Str Str Str Str ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Dict Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareIn NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index Str Str Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Dict Str Str Str Str NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Str Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr GeneratorExp CompareIn NameLoad Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Dict Str Str Str Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr For NameStore NameLoad body If SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str SubscriptLoad NameLoad Index Num Str NameLoad Dict Str Str Str SubscriptLoad NameLoad Index Num Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Num NameLoad NameLoad Dict Str Str Str Str Str Str Str Num NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str ListLoad Num Dict Str Str Str Str Str ListLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str Str Str ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore ListLoad Dict Str Str Str Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A test api module. N/A celery N/A copy N/A mock N/A os N/A simplejson json N/A unittest2 N/A N/A N/A os environ N/A COMPASS_IGNORE_SETTING true compass.utils setting_wrapper setting N/A N/A reload setting compass.api login_manager compass.db.api adapter_holder adapter_api compass.db.api cluster cluster_api compass.db.api database compass.db.api host host_api compass.db.api metadata_holder metadata_api compass.db.api user user_api compass.db.models User compass.utils flags compass.utils logsetting compass.utils util ApiTestCase N/A N/A unittest2 TestCase N/A N/A base api test class. N/A CLUSTER_NAME Test_CLUSTER N/A SWITCH_IP_ADDRESS 10.10.10.1 N/A SWITCH_CREDENTIAL N/A version community xxx xxx N/A USER_CREDENTIALS N/A email password N/A setting COMPASS_ADMIN_EMAIL N/A setting COMPASS_ADMIN_PASSWORD setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiTestCase self setUp N/A N/A N/A os environ N/A COMPASS_IGNORE_SETTING true N/A N/A N/A os environ N/A COMPASS_CONFIG_DIR N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ data N/A N/A reload setting N/A N/A N/A database init sqlite:// N/A N/A N/A database create_db N/A N/A N/A adapter_api load_adapters force_reload True N/A N/A N/A metadata_api load_metadatas force_reload True N/A N/A N/A adapter_api load_flavors force_reload True compass.api api compass_api N/A application N/A compass_api app N/A N/A self test_client N/A N/A application test_client N/A N/A N/A celery current_app send_task N/A N/A mock Mock compass.tasks client celery_client N/A N/A N/A celery_client celery send_task N/A N/A mock Mock N/A url /users/token N/A data N/A self USER_CREDENTIALS N/A request_data N/A N/A json dumps data N/A return_value N/A N/A N/A self test_client post url data request_data N/A resp N/A N/A return_value get_data N/A resp N/A N/A json loads resp N/A N/A self token N/A resp N/A token N/A N/A adapter_name adapter_id os_id flavor_id N/A N/A self _get_adapter_info N/A url /clusters N/A data N/A N/A N/A data N/A name test_cluster1 N/A N/A data N/A adapter_id adapter_id N/A N/A data N/A os_id os_id N/A N/A self os_id os_id N/A N/A data N/A flavor_id flavor_id N/A N/A N/A self post url data N/A data N/A N/A N/A data N/A name test_cluster2 N/A N/A data N/A adapter_id adapter_id N/A N/A data N/A os_id os_id N/A N/A self flavor_id flavor_id N/A N/A data N/A flavor_id flavor_id N/A N/A N/A self post url data N/A url /switches N/A datas N/A N/A ip credentials vendor state N/A self SWITCH_IP_ADDRESS N/A version community 2c public huawei under_monitoring N/A ip credentials vendor state 172.29.8.40 N/A version community 2c public huawei under_monitoring N/A data datas N/A N/A N/A N/A self post url data N/A get N/A N/A self url N/A N/A N/A N/A N/A N/A self test_client get url headers N/A N/A setting USER_AUTH_HEADER_NAME N/A self token N/A post N/A N/A self url data N/A N/A N/A N/A N/A N/A self test_client post url data N/A N/A json dumps data N/A put N/A N/A self url data N/A N/A N/A N/A N/A N/A self test_client put url data N/A N/A json dumps data N/A delete N/A N/A self url N/A N/A N/A N/A N/A N/A self test_client delete url N/A tearDown N/A N/A self N/A N/A N/A N/A N/A database drop_db N/A N/A reload setting N/A N/A N/A N/A super ApiTestCase self tearDown N/A _get_adapter_info N/A N/A self N/A N/A N/A adapter_name None N/A adapter_id None N/A os_id None N/A flavor_id None N/A adapters N/A N/A N/A N/A self get /adapters get_data N/A adapters N/A N/A json loads adapters N/A adapter adapters N/A N/A N/A adapter N/A flavors N/A N/A adapter_name N/A adapter N/A name N/A adapter_id N/A adapter N/A id N/A os_id N/A N/A N/A adapter N/A supported_oses N/A 0 N/A os_id N/A flavor N/A adapter N/A flavors N/A N/A flavor_id N/A flavor N/A id N/A N/A N/A adapter_name N/A N/A N/A Exception adapter name not found N/A N/A adapter_id N/A N/A N/A Exception adapter id not found N/A N/A os_id N/A N/A N/A Exception os id not found N/A N/A flavor_id N/A N/A N/A Exception flavor id not found N/A N/A adapter_name adapter_id os_id flavor_id N/A N/A TestAuth N/A ApiTestCase N/A N/A Test user authentication. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestAuth self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestAuth self tearDown N/A test_login_logout N/A N/A self N/A N/A N/A url /users/token N/A data N/A self USER_CREDENTIALS N/A request_data N/A N/A json dumps data N/A return_value N/A N/A N/A self test_client post url data request_data follow_redirects True N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /users/logout N/A return_value N/A N/A N/A self test_client post url follow_redirects True N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A test_login_failed N/A N/A self N/A N/A N/A url /users/token N/A data_list N/A N/A email password xxx admin N/A email password admin@huawei.com xxx N/A data data_list N/A N/A return_value N/A N/A N/A self test_client post url data data follow_redirects True N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A N/A N/A self assertIn missing email or password N/A N/A return_value get_data N/A N/A N/A N/A N/A N/A User query filter_by email admin@huawei.com update N/A active False N/A request_data N/A N/A json dumps N/A self USER_CREDENTIALS N/A return_value N/A N/A N/A self test_client post url data request_data follow_redirects True N/A N/A TestUserAPI N/A ApiTestCase N/A N/A Test user api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestUserAPI self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestUserAPI self tearDown N/A test_list_users N/A N/A self N/A N/A N/A url /users N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 1 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A TestClusterAPI N/A ApiTestCase N/A N/A Test cluster api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestClusterAPI self setUp N/A url /switches/2/machines N/A data N/A mac port vlans 28:6e:d4:46:c4:25 1 N/A 88 N/A N/A N/A self post url data N/A url /clusters/1/hosts N/A data N/A name reinstall_os machine_id test_cluster_host True 1 N/A N/A N/A self post url data N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestClusterAPI self tearDown N/A test_list_clusters N/A N/A self N/A N/A N/A url /clusters N/A return_value N/A N/A N/A self test_client get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A resp N/A N/A json loads N/A N/A return_value get_data N/A expected N/A N/A name test_cluster1 N/A name test_cluster2 N/A N/A i v N/A enumerate resp N/A N/A N/A N/A self assertTrue N/A all N/A N/A item N/A N/A N/A resp N/A i items N/A item N/A N/A N/A expected N/A i items N/A url /clusters?name=xx N/A return_value N/A N/A json loads N/A N/A N/A N/A N/A self test_client get url get_data N/A N/A N/A self assertEqual N/A return_value N/A test_show_cluster N/A N/A self N/A N/A N/A url /clusters/1 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A resp N/A name test_cluster1 N/A url clusters/999 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_add_cluster N/A N/A self N/A N/A N/A url /clusters N/A N/A adapter_name adapter_id os_id flavor_id N/A N/A self _get_adapter_info N/A data N/A N/A N/A data N/A name test_add_cluster N/A N/A data N/A adapter_id adapter_id N/A N/A data N/A os_id os_id N/A N/A data N/A flavor_id flavor_id N/A return_value N/A N/A self post url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A name test_add_cluster N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 409 N/A data N/A N/A N/A data N/A name cluster_invalid N/A N/A data N/A adapter_id 9 N/A N/A data N/A os_id 1 N/A N/A data N/A flavor_id flavor_id N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A data N/A N/A N/A data N/A name cluster_invalid N/A N/A data N/A adapter_id adapter_id N/A N/A data N/A os_id 1 N/A N/A data N/A flavor_id 1 N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_update_cluster N/A N/A self N/A N/A N/A url clusters/1 N/A data N/A name cluster_update N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A N/A return_value get_data N/A name cluster_update N/A url clusters/99 N/A data N/A name cluster_update_non_existed N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A url clusters/1 N/A data N/A xxx cluster_update_wrong_keyword N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A test_delete_cluster_not_editable N/A N/A self N/A N/A N/A N/A self user_object N/A N/A user_api get_user_object N/A setting COMPASS_ADMIN_EMAIL N/A N/A N/A cluster_api update_cluster_state 1 state INSTALLING user N/A self user_object N/A url /clusters/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 403 N/A test_delete_cluster N/A N/A self N/A N/A N/A url /clusters/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A test_list_cluster_hosts N/A N/A self N/A N/A N/A url /clusters/1/hosts N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 1 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /clusters/99/hosts N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_show_cluster_host N/A N/A self N/A N/A N/A url /clusters/1/hosts/1 N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A resp N/A hostname test_cluster_host N/A url /clusters/1/hosts/99 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_add_cluster_host N/A N/A self N/A N/A N/A url /clusters/2/hosts N/A data N/A name reinstall_os machine_id add_cluster_host True 1 N/A return_value N/A N/A self post url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A hostname add_cluster_host N/A data N/A name reinstall_os machine_id duplicate_cluster_host True 1 N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 409 N/A test_update_cluster_host N/A N/A self N/A N/A N/A url /clusters/1/hosts/1 N/A data N/A roles N/A allinone-compute N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A test_delete_cluster_host N/A N/A self N/A N/A N/A url /clusters/1/hosts/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /clusters/99/hosts/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A N/A TestSubnetAPI N/A ApiTestCase N/A N/A Test subnet api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSubnetAPI self setUp N/A url /subnets N/A data N/A subnet name 10.145.89.0/24 test_subnet N/A N/A N/A self post url data N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestSubnetAPI self tearDown N/A test_list_subnets N/A N/A self N/A N/A N/A url /subnets N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 1 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /subnets?name=test N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual resp N/A N/A test_show_subnet N/A N/A self N/A N/A N/A url /subnets/1 N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A name test_subnet N/A url /subnets/99 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_add_subnet N/A N/A self N/A N/A N/A url /subnets N/A data N/A subnet name 10.145.89.0/24 test_subnet N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 409 N/A data N/A subnet name xxx subnet_invalid N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A test_update_subnet N/A N/A self N/A N/A N/A url /subnets/1 N/A data N/A subnet name 192.168.100.0/24 update_subnet N/A return_value N/A N/A self put url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertTrue N/A N/A item N/A N/A data items N/A item N/A N/A resp items N/A url /subnets/99 N/A data N/A subnet name 192.168.100.0/24 subnet_invalid N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A url /subnets/1 N/A data N/A xxx wrong_filter N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A test_delete_subnet N/A N/A self N/A N/A N/A url /subnets/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /subnets/99 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A N/A TestSwitchAPI N/A ApiTestCase N/A N/A Test switch api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSwitchAPI self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestSwitchAPI self tearDown N/A test_list_switches N/A N/A self N/A N/A N/A url /switches N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 2 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /switches?ip_int=172.29.8.40 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /switches?ip_int=xxx N/A return_value N/A N/A json loads N/A N/A N/A N/A self get url get_data N/A N/A N/A self assertEqual N/A return_value N/A test_show_switch N/A N/A self N/A N/A N/A url /switches/2 N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A ip N/A self SWITCH_IP_ADDRESS N/A url /switches/99 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_add_switch N/A N/A self N/A N/A N/A url /switches N/A data N/A ip credentials vendor state 172.29.8.10 N/A version community 2c public huawei under_monitoring N/A return_value N/A N/A self post url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A ip 172.29.8.10 N/A data N/A ip credentials vendor state N/A self SWITCH_IP_ADDRESS N/A version community 2c public huawei under_monitoring N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 409 N/A data N/A ip vendor xxx huawei N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A test_add_switches N/A N/A self N/A N/A N/A url /switchesbatch N/A data N/A N/A ip vendor credentials 172.29.8.30 Huawei N/A version community 2c public N/A ip 172.29.8.40 N/A return_value N/A N/A self post url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A success N/A N/A fail N/A N/A item N/A resp N/A switches N/A N/A N/A N/A success append N/A item N/A ip N/A item N/A resp N/A fail_switches N/A N/A N/A N/A fail append N/A item N/A ip N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertIn 172.29.8.30 success N/A N/A N/A self assertIn 172.29.8.40 fail N/A test_update_switch N/A N/A self N/A N/A N/A url /switches/1 N/A data N/A vendor update_vendor N/A return_value N/A N/A self put url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A vendor update_vendor N/A url /switches/99 N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A url /switches/2 N/A data N/A xxx invlid N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A test_delete_switch N/A N/A self N/A N/A N/A url /switches/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /switches/99 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A N/A TestAdapterAPI N/A ApiTestCase N/A N/A Test adapter api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestAdapterAPI self setUp N/A N/A self adapter_name None N/A N/A self adapter_id None N/A url /adapters N/A adapters N/A N/A json loads N/A N/A N/A N/A self get url get_data N/A adapter adapters N/A N/A N/A adapter N/A flavors N/A N/A N/A self adapter_name N/A adapter N/A name N/A N/A self adapter_id N/A adapter N/A id N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestAdapterAPI self tearDown N/A test_list_adapters N/A N/A self N/A N/A N/A url /adapters N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 3 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /adapters?name=xx N/A return_value N/A N/A json loads N/A N/A N/A N/A self get url get_data N/A N/A N/A self assertEqual N/A return_value N/A test_show_adapter N/A N/A self N/A N/A N/A url N/A /adapters/%s N/A self adapter_id N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A name N/A self adapter_name N/A url /adapters/99 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A N/A TestHostAPI N/A ApiTestCase N/A N/A Test host api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestHostAPI self setUp N/A url switches/1/machines N/A datas N/A N/A mac port location 28:6e:d4:46:c4:25 1 test_location1 N/A mac port location 00:0c:29:bf:eb:1d 1 test_location2 N/A machine_id N/A N/A N/A i data N/A enumerate datas N/A N/A return_value N/A N/A self post url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A machine_id N/A i N/A resp N/A machine_id N/A url /clusters/1/hosts N/A datas N/A N/A machine_id name reinstall_os N/A machine_id N/A 0 test_host1 True N/A machine_id name reinstall_os N/A machine_id N/A 1 test_hosts2 True N/A data datas N/A N/A N/A N/A self post url data N/A url /subnets N/A data N/A subnet name 10.172.20.0/24 test_subnet N/A N/A N/A self post url data N/A url /hosts/1/networks N/A datas N/A N/A interface ip subnet_id is_mgmt is_promiscuous eth0 10.172.20.91 1 False False N/A interface ip subnet_id is_mgmt is_promiscuous eth1 10.172.20.110 1 False False N/A data datas N/A N/A N/A N/A self post url data N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestHostAPI self tearDown N/A test_list_hosts N/A N/A self N/A N/A N/A url /hosts N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 2 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /hosts?name=xx N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A resp N/A test_show_host N/A N/A self N/A N/A N/A url /hosts/1 N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A name test_host1 N/A url /hosts/99 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_list_machines_or_hosts N/A N/A self N/A N/A N/A url /machines-hosts N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A test_show_machine_or_host N/A N/A self N/A N/A N/A url /machines-hosts/1 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A test_update_host N/A N/A self N/A N/A N/A url /hosts/1 N/A data N/A name update_host N/A return_value N/A N/A self put url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A name update_host N/A data N/A location update_location N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A N/A N/A self assertIn are not supported N/A N/A return_value get_data N/A url /hosts/99 N/A data N/A name host N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_delete_host N/A N/A self N/A N/A N/A url /hosts/2 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /hosts/99 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_list_host_networks N/A N/A self N/A N/A N/A url /hosts/1/networks N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 2 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A test_show_host_network N/A N/A self N/A N/A N/A url /hosts/1/networks/1 N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A ip 10.172.20.91 N/A N/A TestSwitchMachines N/A ApiTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSwitchMachines self setUp N/A url /switches/2/machines N/A datas N/A N/A mac port vlans 28:6e:d4:46:c4:25 1 N/A 88 N/A mac port vlans 00:0c:29:bf:eb:1d 1 N/A 1 N/A data datas N/A N/A N/A N/A self post url data N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestSwitchMachines self tearDown N/A test_list_switch_machines N/A N/A self N/A N/A N/A url /switches/2/machines N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A count N/A len resp N/A N/A N/A self assertEqual count 2 N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A url /switches/99/machines N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_add_switch_machine N/A N/A self N/A N/A N/A url /switches/2/machines N/A data N/A mac port vlans 00:0c:29:5b:ee:eb 1 N/A 10 N/A return_value N/A N/A self post url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A mac 00:0c:29:5b:ee:eb N/A url /switches/2/machines N/A data N/A mac port vlans 28:6e:d4:46:c4:25 1 N/A 88 N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 409 N/A url s/witchedes N/A data N/A mac xxx N/A return_value N/A N/A self post url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_add_switch_machines N/A N/A self N/A N/A N/A url /switches N/A return_value N/A N/A self get url N/A url /switches/machines N/A data N/A N/A switch_ip mac port 0.0.0.0 1a:2b:3c:4d:5e:6f 100 N/A switch_ip mac port 0.0.0.0 a1:b2:c3:d4:e5:f6 101 N/A switch_ip mac port 0.0.0.0 a1:b2:c3:d4:e5:f6 101 N/A switch_ip mac port 0.0.0.0 a1:b2:c3:d4:e5:f6 102 N/A switch_ip mac port 10.10.10.1 b1:b2:c3:d4:e5:f6 200 N/A switch_ip mac port 127.0.0.2 a1:b2:f3:d4:e5:f6 100 N/A return_value N/A N/A self post url data N/A expected N/A N/A switch_ip port mac 0.0.0.0 100 1a:2b:3c:4d:5e:6f N/A switch_ip port mac 0.0.0.0 101 a1:b2:c3:d4:e5:f6 N/A switch_ip port mac 10.10.10.1 200 b1:b2:c3:d4:e5:f6 N/A expect_duplicate N/A N/A mac port a1:b2:c3:d4:e5:f6 101 N/A expect_failed N/A N/A mac port a1:b2:f3:d4:e5:f6 100 N/A mac port a1:b2:c3:d4:e5:f6 102 N/A resp N/A N/A json loads N/A N/A return_value get_data N/A res N/A N/A res_du N/A N/A res_fail N/A N/A N/A k v N/A N/A resp items N/A N/A N/A k switches_machines N/A N/A item v N/A N/A N/A N/A res append item N/A N/A k duplicate_switches_machines N/A N/A item v N/A N/A N/A N/A res_du append item N/A N/A k fail_switches_machines N/A N/A item v N/A N/A N/A N/A res_fail append item N/A N/A N/A self assertEqual N/A len res N/A len expected N/A N/A i v N/A enumerate res N/A N/A N/A N/A self assertDictContainsSubset N/A expected N/A i N/A res N/A i N/A N/A N/A self assertEqual N/A len res_fail N/A len expect_failed N/A N/A i v N/A enumerate res_fail N/A N/A N/A N/A self assertDictContainsSubset N/A expect_failed N/A i N/A res_fail N/A i N/A N/A N/A self assertEqual N/A len res_du N/A len expect_duplicate N/A N/A i v N/A enumerate res_du N/A N/A N/A N/A self assertDictContainsSubset N/A expect_duplicate N/A i N/A res_du N/A i N/A test_show_switch_machine N/A N/A self N/A N/A N/A url /switches/2/machines/1 N/A return_value N/A N/A self get url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A mac 28:6e:d4:46:c4:25 N/A url /switches/99/machines/1 N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A test_update_switch_machine N/A N/A self N/A N/A N/A url /switches/2/machines/1 N/A data N/A port 100 N/A return_value N/A N/A self put url data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertEqual N/A resp N/A port 100 N/A url /switches/99/machines/1 N/A data N/A port 99 N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 404 N/A url /switches/2/machines/1 N/A data N/A mac 00:0c:29:a5:f2:05 N/A return_value N/A N/A self put url data N/A N/A N/A self assertEqual N/A return_value status_code 400 N/A N/A N/A self assertIn are not supported N/A N/A return_value get_data N/A test_delete_switch_machine N/A N/A self N/A N/A N/A url /switches/2/machines/1 N/A return_value N/A N/A self delete url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A TestMetadataAPI N/A ApiTestCase N/A N/A Test metadata api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestMetadataAPI self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestMetadataAPI self tearDown N/A test_get_os_ui_metadata N/A N/A self N/A N/A N/A url N/A /oses/%s/ui_metadata N/A self os_id N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertIn os_global_config N/A N/A return_value get_data N/A test_get_flavor_ui_metadata N/A N/A self N/A N/A N/A url N/A /flavors/%s/ui_metadata N/A self flavor_id N/A return_value N/A N/A self get url N/A N/A N/A self assertEqual N/A return_value status_code 200 N/A N/A N/A self assertIn flavor_config N/A N/A return_value get_data N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags init N/A N/A N/A logsetting init N/A N/A N/A unittest2 main