Module Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Import alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Dict Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str ListLoad NameLoad Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str Num Dict Str Str Str Str Str ListLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Index Num Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str NameLoad Str Str ListLoad Dict Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str ListLoad Dict Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str Str Str Str Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str ListLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Dict NameLoad NameLoad Str Str NameLoad NameLoad Num Num Num ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad Str NameLoad Num Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad ListLoad NameLoad Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Str ListLoad Str Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str ListLoad Str Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Dict NameLoad NameLoad Str Str NameLoad NameLoad Num Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad ListLoad ListLoad Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Dict Str Str Str SubscriptLoad NameLoad Index Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Dict Str Str Str SubscriptLoad NameLoad Index Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Dict NameLoad NameLoad Str NameLoad NameLoad Num Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad Str ListLoad NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str Str Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Str Assign SubscriptStore NameLoad Index Str Num Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str ListLoad Str Str Assign SubscriptStore NameLoad Index Str Num Assign NameStore ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Str Assign SubscriptStore NameLoad Index Str Num Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str Num Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Dict NameLoad NameLoad Str Str Str NameLoad NameLoad Num Num ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad Num Str NameLoad Str Assign NameStore ListLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Dict Str SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Dict Str Str Num Assign NameStore Dict Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad Str NameLoad Num Num NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Dict Str Str Num Assign NameStore Dict Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Str Str NameLoad NameLoad Num Num NameLoad Str Dict NameLoad ListLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str Str Str Str Str Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Index Str Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str Str Dict Str Str Index Num Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Assign NameStore Dict Str Str Str Dict Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Dict 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 Dict Str Str Str Str Str Str Str Str NameLoad Num NameLoad Num Num Num NameLoad NameLoad ListLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad Num Str Str Dict SubscriptLoad NameLoad Index Str Str NameLoad Num Num Str NameLoad NameLoad Str NameLoad NameLoad Num NameLoad Str NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad ListLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Num Index Num Index Str Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str Num Dict Str Str Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str SubscriptLoad NameLoad Index Str Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Num Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str Dict Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Num Num Assign NameStore Dict Str Str Str Str Str Str Str Str Num Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str SubscriptLoad NameLoad Index Str Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr keyword Num orelse Expr Call AttributeLoad NameLoad attr
N/A N/A logging N/A unittest N/A sys N/A N/A N/A N/A sys path append ../nipap/ nipap.backend Nipap nipap.authlib SqliteAuth nipap.nipapconfig NipapConfig N/A logger N/A N/A logging getLogger N/A N/A N/A logger setLevel N/A logging DEBUG N/A log_format %(levelname)-8s %(message)s N/A xmlrpclib N/A server_url http://unittest:gottatest@127.0.0.1:1337/XMLRPC N/A s N/A N/A xmlrpclib Server server_url allow_none 1 N/A ad N/A authoritative_source nipap NipapXmlTest N/A N/A unittest TestCase N/A N/A  Tests the NIPAP XML-RPC daemon

        We presume the database is empty
     N/A maxDiff None N/A logger None N/A cfg None N/A nipap None setUp N/A N/A self N/A N/A N/A N/A self logger N/A N/A logging getLogger N/A N/A self __class__ __name__ N/A N/A self cfg N/A NipapConfig /etc/nipap/nipap.conf N/A N/A self nipap N/A Nipap N/A N/A self auth N/A SqliteAuth local unittest unittest unittest N/A N/A N/A self auth authenticated_as unittest N/A N/A N/A self auth full_name Unit test N/A N/A N/A N/A self nipap _execute DELETE FROM ip_net_plan WHERE masklen(prefix) = 32 N/A N/A N/A N/A self nipap _execute DELETE FROM ip_net_plan N/A N/A N/A N/A self nipap _execute DELETE FROM ip_net_vrf WHERE id > 0 N/A N/A N/A N/A self nipap _execute UPDATE ip_net_vrf SET name = 'default', description = 'The default VRF, typically the Internet.' WHERE id = 0 N/A N/A N/A N/A self nipap _execute DELETE FROM ip_net_pool N/A N/A N/A N/A self nipap _execute DELETE FROM ip_net_asn N/A _mangle_pool_result N/A N/A self res N/A N/A N/A  Mangle pool result for easier testing

            We can never predict the values of things like the ID (okay, that
            one is actually kind of doable) or the added and last_modified
            timestamp. This function will make sure the values are present but
            then strip them to make it easier to test against an expected
            result.

            All testing of statistics is done in nipaptest.py so we strip that
            from the result here to make things simple.
         N/A N/A isinstance res list N/A N/A p res N/A N/A N/A N/A self assertIn total_addresses_v4 p N/A N/A N/A self assertIn total_addresses_v6 p N/A N/A N/A self assertIn used_addresses_v4 p N/A N/A N/A self assertIn used_addresses_v6 p N/A N/A N/A self assertIn free_addresses_v4 p N/A N/A N/A self assertIn free_addresses_v6 p N/A N/A N/A self assertIn member_prefixes_v4 p N/A N/A N/A self assertIn member_prefixes_v6 p N/A N/A N/A self assertIn used_prefixes_v4 p N/A N/A N/A self assertIn used_prefixes_v6 p N/A N/A N/A self assertIn free_prefixes_v4 p N/A N/A N/A self assertIn free_prefixes_v6 p N/A N/A N/A self assertIn total_prefixes_v4 p N/A N/A N/A self assertIn total_prefixes_v6 p N/A N/A p N/A total_addresses_v4 N/A N/A p N/A total_addresses_v6 N/A N/A p N/A used_addresses_v4 N/A N/A p N/A used_addresses_v6 N/A N/A p N/A free_addresses_v4 N/A N/A p N/A free_addresses_v6 N/A N/A p N/A member_prefixes_v4 N/A N/A p N/A member_prefixes_v6 N/A N/A p N/A used_prefixes_v4 N/A N/A p N/A used_prefixes_v6 N/A N/A p N/A free_prefixes_v4 N/A N/A p N/A free_prefixes_v6 N/A N/A p N/A total_prefixes_v4 N/A N/A p N/A total_prefixes_v6 N/A N/A N/A N/A isinstance res dict N/A result res N/A N/A p N/A res N/A result N/A N/A N/A N/A self assertIn total_addresses_v4 p N/A N/A N/A self assertIn total_addresses_v6 p N/A N/A N/A self assertIn used_addresses_v4 p N/A N/A N/A self assertIn used_addresses_v6 p N/A N/A N/A self assertIn free_addresses_v4 p N/A N/A N/A self assertIn free_addresses_v6 p N/A N/A N/A self assertIn member_prefixes_v4 p N/A N/A N/A self assertIn member_prefixes_v6 p N/A N/A N/A self assertIn used_prefixes_v4 p N/A N/A N/A self assertIn used_prefixes_v6 p N/A N/A N/A self assertIn free_prefixes_v4 p N/A N/A N/A self assertIn free_prefixes_v6 p N/A N/A N/A self assertIn total_prefixes_v4 p N/A N/A N/A self assertIn total_prefixes_v6 p N/A N/A p N/A total_addresses_v4 N/A N/A p N/A total_addresses_v6 N/A N/A p N/A used_addresses_v4 N/A N/A p N/A used_addresses_v6 N/A N/A p N/A free_addresses_v4 N/A N/A p N/A free_addresses_v6 N/A N/A p N/A member_prefixes_v4 N/A N/A p N/A member_prefixes_v6 N/A N/A p N/A used_prefixes_v4 N/A N/A p N/A used_prefixes_v6 N/A N/A p N/A free_prefixes_v4 N/A N/A p N/A free_prefixes_v6 N/A N/A p N/A total_prefixes_v4 N/A N/A p N/A total_prefixes_v6 N/A N/A N/A isinstance res dict N/A N/A N/A N/A self assertIn total_addresses_v4 res N/A N/A N/A self assertIn total_addresses_v6 res N/A N/A N/A self assertIn used_addresses_v4 res N/A N/A N/A self assertIn used_addresses_v6 res N/A N/A N/A self assertIn free_addresses_v4 res N/A N/A N/A self assertIn free_addresses_v6 res N/A N/A N/A self assertIn member_prefixes_v4 res N/A N/A N/A self assertIn member_prefixes_v6 res N/A N/A N/A self assertIn used_prefixes_v4 res N/A N/A N/A self assertIn used_prefixes_v6 res N/A N/A N/A self assertIn free_prefixes_v4 res N/A N/A N/A self assertIn free_prefixes_v6 res N/A N/A N/A self assertIn total_prefixes_v4 res N/A N/A N/A self assertIn total_prefixes_v6 res N/A N/A res N/A total_addresses_v4 N/A N/A res N/A total_addresses_v6 N/A N/A res N/A used_addresses_v4 N/A N/A res N/A used_addresses_v6 N/A N/A res N/A free_addresses_v4 N/A N/A res N/A free_addresses_v6 N/A N/A res N/A member_prefixes_v4 N/A N/A res N/A member_prefixes_v6 N/A N/A res N/A used_prefixes_v4 N/A N/A res N/A used_prefixes_v6 N/A N/A res N/A free_prefixes_v4 N/A N/A res N/A free_prefixes_v6 N/A N/A res N/A total_prefixes_v4 N/A N/A res N/A total_prefixes_v6 N/A res N/A _mangle_prefix_result N/A N/A self res N/A N/A N/A  Mangle prefix result for easier testing

            We can never predict the values of things like the ID (okay, that
            one is actually kind of doable) or the added and last_modified
            timestamp. This function will make sure the values are present but
            then strip them to make it easier to test against an expected
            result.

            All testing of statistics is done in nipaptest.py so we strip that
            from the result here to make things simple.
         N/A N/A isinstance res list N/A N/A p res N/A N/A N/A N/A self assertIn added p N/A N/A N/A self assertIn last_modified p N/A N/A N/A self assertIn total_addresses p N/A N/A N/A self assertIn used_addresses p N/A N/A N/A self assertIn free_addresses p N/A N/A p N/A added N/A N/A p N/A last_modified N/A N/A p N/A total_addresses N/A N/A p N/A used_addresses N/A N/A p N/A free_addresses N/A N/A N/A N/A isinstance res dict N/A result res N/A N/A p N/A res N/A result N/A N/A N/A N/A self assertIn added p N/A N/A N/A self assertIn last_modified p N/A N/A N/A self assertIn total_addresses p N/A N/A N/A self assertIn used_addresses p N/A N/A N/A self assertIn free_addresses p N/A N/A p N/A added N/A N/A p N/A last_modified N/A N/A p N/A total_addresses N/A N/A p N/A used_addresses N/A N/A p N/A free_addresses N/A N/A N/A isinstance res dict N/A N/A N/A N/A self assertIn added res N/A N/A N/A self assertIn last_modified res N/A N/A N/A self assertIn total_addresses res N/A N/A N/A self assertIn used_addresses res N/A N/A N/A self assertIn free_addresses res N/A N/A res N/A added N/A N/A res N/A last_modified N/A N/A res N/A total_addresses N/A N/A res N/A used_addresses N/A N/A res N/A free_addresses N/A res N/A _mangle_vrf_result N/A N/A self res N/A N/A N/A  Mangle vrf result for easier testing

            We can never predict the values of things like the ID (okay, that
            one is actually kind of doable) or the added and last_modified
            timestamp. This function will make sure the values are present but
            then strip them to make it easier to test against an expected
            result.

            All testing of statistics is done in nipaptest.py so we strip that
            from the result here to make things simple.
         N/A N/A isinstance res list N/A N/A p res N/A N/A N/A N/A self assertIn total_addresses_v4 p N/A N/A N/A self assertIn total_addresses_v6 p N/A N/A N/A self assertIn used_addresses_v4 p N/A N/A N/A self assertIn used_addresses_v6 p N/A N/A N/A self assertIn free_addresses_v4 p N/A N/A N/A self assertIn free_addresses_v6 p N/A N/A N/A self assertIn num_prefixes_v4 p N/A N/A N/A self assertIn num_prefixes_v6 p N/A N/A p N/A total_addresses_v4 N/A N/A p N/A total_addresses_v6 N/A N/A p N/A used_addresses_v4 N/A N/A p N/A used_addresses_v6 N/A N/A p N/A free_addresses_v4 N/A N/A p N/A free_addresses_v6 N/A N/A p N/A num_prefixes_v4 N/A N/A p N/A num_prefixes_v6 N/A N/A N/A N/A isinstance res dict N/A result res N/A N/A p N/A res N/A result N/A N/A N/A N/A self assertIn total_addresses_v4 p N/A N/A N/A self assertIn total_addresses_v6 p N/A N/A N/A self assertIn used_addresses_v4 p N/A N/A N/A self assertIn used_addresses_v6 p N/A N/A N/A self assertIn free_addresses_v4 p N/A N/A N/A self assertIn free_addresses_v6 p N/A N/A N/A self assertIn num_prefixes_v4 p N/A N/A N/A self assertIn num_prefixes_v6 p N/A N/A p N/A total_addresses_v4 N/A N/A p N/A total_addresses_v6 N/A N/A p N/A used_addresses_v4 N/A N/A p N/A used_addresses_v6 N/A N/A p N/A free_addresses_v4 N/A N/A p N/A free_addresses_v6 N/A N/A p N/A num_prefixes_v4 N/A N/A p N/A num_prefixes_v6 N/A N/A N/A isinstance res dict N/A N/A N/A N/A self assertIn total_addresses_v4 res N/A N/A N/A self assertIn total_addresses_v6 res N/A N/A N/A self assertIn used_addresses_v4 res N/A N/A N/A self assertIn used_addresses_v6 res N/A N/A N/A self assertIn free_addresses_v4 res N/A N/A N/A self assertIn free_addresses_v6 res N/A N/A N/A self assertIn num_prefixes_v4 res N/A N/A N/A self assertIn num_prefixes_v6 res N/A N/A res N/A total_addresses_v4 N/A N/A res N/A total_addresses_v6 N/A N/A res N/A used_addresses_v4 N/A N/A res N/A used_addresses_v6 N/A N/A res N/A free_addresses_v4 N/A N/A res N/A free_addresses_v6 N/A N/A res N/A num_prefixes_v4 N/A N/A res N/A num_prefixes_v6 N/A res N/A test_vrf_add_list N/A N/A self N/A N/A N/A  Add a VRF and verify result in database
         N/A attr N/A N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault missing attribute rt N/A N/A N/A N/A s add_vrf N/A auth attr ad attr N/A N/A attr N/A rt 123:456 N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault missing attribute name N/A N/A N/A N/A s add_vrf N/A auth attr ad attr N/A N/A attr N/A name test N/A N/A attr N/A tags N/A N/A N/A attr N/A description my test vrf N/A N/A attr N/A avps N/A foo bar N/A vrf N/A N/A s add_vrf N/A auth attr ad attr N/A N/A N/A self assertGreater N/A vrf N/A id 0 N/A ref N/A N/A attr copy N/A N/A ref N/A id N/A vrf N/A id N/A N/A N/A self assertEqual N/A N/A self _mangle_vrf_result vrf ref N/A N/A N/A self assertEqual N/A N/A self _mangle_vrf_result N/A N/A s list_vrf N/A auth vrf ad N/A id N/A vrf N/A id N/A ref N/A N/A attr N/A rt 123:abc N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault . N/A N/A N/A N/A s add_vrf N/A auth attr ad attr N/A test_vrf_edit_default N/A N/A self N/A N/A N/A  Edit the default VRF and verify the change
         N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault Invalid input for column rt, must be NULL for VRF id 0 N/A N/A N/A N/A s edit_vrf N/A auth vrf attr ad N/A id 0 N/A rt 123:456a N/A res_edit N/A N/A s edit_vrf N/A auth vrf attr ad N/A id 0 N/A name description tags FOO BAR N/A N/A res_list N/A N/A N/A s list_vrf N/A auth vrf ad N/A N/A 0 N/A N/A res_list N/A id N/A N/A N/A self assertEqual N/A N/A self _mangle_vrf_result res_list N/A rt name description tags avps None FOO BAR N/A N/A VRF change incorrect N/A test_vrf_edit N/A N/A self N/A N/A N/A  Edit VRF and verify the change
         N/A attr N/A rt name description tags avps 65000:123 65k:123 VRF 65000:123 N/A N/A N/A spec N/A rt 65000:123 N/A vrf N/A N/A s add_vrf N/A auth attr ad attr N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault vrf specification must be a dict N/A N/A N/A N/A s edit_vrf N/A auth attr ad N/A name test_vrf_edit N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault invalid input type, must be dict N/A N/A N/A N/A s edit_vrf N/A auth vrf ad spec N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault specification contains too many keys N/A N/A N/A N/A s edit_vrf N/A auth vrf attr ad N/A rt name 65000:123 65k:123 N/A N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault extraneous attribute N/A N/A N/A N/A s edit_vrf N/A auth vrf attr ad spec N/A id 1337 N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault 'attr' must not be empty. N/A N/A N/A N/A s edit_vrf N/A auth vrf attr ad spec N/A N/A res N/A N/A s list_vrf N/A auth vrf ad spec N/A N/A N/A self assertEquals N/A len res 1 wrong number of VRFs returned N/A res N/A res N/A 0 N/A N/A res N/A id N/A N/A N/A self assertEqual N/A N/A self _mangle_vrf_result res attr N/A N/A attr N/A rt 65000:1234 N/A N/A attr N/A name 65k:1234 N/A N/A attr N/A description VRF 65000:1234 N/A N/A attr N/A tags N/A N/A N/A N/A s edit_vrf N/A auth vrf attr ad spec attr N/A res N/A N/A s list_vrf N/A auth vrf ad N/A rt N/A attr N/A rt N/A N/A N/A self assertEquals N/A len res 1 wrong number of VRFs returned N/A res N/A res N/A 0 N/A N/A res N/A id N/A N/A N/A self assertEqual N/A N/A self _mangle_vrf_result res attr VRF change incorrect N/A test_vrf_add_search N/A N/A self N/A N/A N/A  Add VRF and search for it
         N/A attr N/A rt name description tags avps 65000:1235 65k:1235 Virtual Routing and Forwarding instance 65000:123 N/A N/A N/A vrf N/A N/A s add_vrf N/A auth attr ad attr N/A N/A attr N/A id N/A vrf N/A id N/A q N/A operator val1 val2 equals rt N/A attr N/A rt N/A res N/A N/A self _mangle_vrf_result N/A N/A s search_vrf N/A auth query ad q N/A N/A N/A self assertEquals N/A res N/A result N/A attr Search result from equal match did not match N/A q N/A operator val1 val2 regex_match description instance 65000 N/A res N/A N/A self _mangle_vrf_result N/A N/A s search_vrf N/A auth query ad q N/A N/A N/A self assertEquals N/A res N/A result N/A attr Search result from regex match did not match N/A res N/A N/A self _mangle_vrf_result N/A N/A s smart_search_vrf N/A auth query_string ad forwarding instance N/A N/A N/A self assertEquals N/A res N/A result N/A attr Smart search result did not match N/A test_prefix_add N/A N/A self N/A N/A N/A  Add a prefix and list
         N/A attr N/A N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault specify 'prefix' or 'from-prefix' or 'from-pool' N/A N/A N/A N/A s add_prefix N/A auth attr ad attr N/A N/A attr N/A prefix 1.3.3.0/24 N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault Either description or node must be specified. N/A N/A N/A N/A s add_prefix N/A auth attr ad attr N/A N/A attr N/A description test prefix N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault Unknown prefix type N/A N/A N/A N/A s add_prefix N/A auth attr ad attr N/A N/A attr N/A type assignment N/A prefix N/A N/A s add_prefix N/A auth attr ad attr N/A N/A attr N/A id N/A prefix N/A id N/A N/A N/A self assertGreater N/A attr N/A id 0 N/A expected N/A alarm_priority authoritative_source avps comment country description display_prefix expires external_key family id indent inherited_tags monitor node order_id customer_id pool_name pool_id tags status vrf_rt vrf_id vrf_name vlan None nipap N/A None None test prefix 1.3.3.0/24 None None 4 131 0 N/A None None None None None None N/A assigned None 0 default None N/A N/A N/A expected update attr N/A N/A N/A self assertEqual N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad N/A expected N/A attr N/A description type test for from-prefix 1.3.3.0/24 host N/A args N/A from-prefix prefix_length N/A 1.3.3.0/24 32 N/A res N/A N/A s add_prefix N/A auth attr args ad attr args N/A expected_host N/A N/A expected copy N/A N/A N/A expected_host update attr N/A N/A expected_host N/A id N/A res N/A id N/A N/A expected_host N/A prefix 1.3.3.1/32 N/A N/A expected_host N/A display_prefix 1.3.3.1/24 N/A N/A expected_host N/A indent 1 N/A expected_list N/A N/A N/A N/A expected_list append expected N/A N/A N/A expected_list append expected_host N/A N/A attr N/A vrf_id None N/A res N/A N/A s add_prefix N/A auth attr args ad attr args N/A expected_host2 N/A N/A expected_host copy N/A N/A expected_host2 N/A id N/A res N/A id N/A N/A expected_host2 N/A prefix 1.3.3.2/32 N/A N/A expected_host2 N/A display_prefix 1.3.3.2/24 N/A N/A N/A expected_list append expected_host2 N/A N/A attr N/A vrf_id N/A res N/A N/A s add_prefix N/A auth attr args ad attr args N/A expected_host3 N/A N/A expected_host copy N/A N/A expected_host3 N/A id N/A res N/A id N/A N/A expected_host3 N/A prefix 1.3.3.3/32 N/A N/A expected_host3 N/A display_prefix 1.3.3.3/24 N/A N/A N/A expected_list append expected_host3 N/A N/A attr N/A vrf_name default N/A res N/A N/A s add_prefix N/A auth attr args ad attr args N/A expected_host4 N/A N/A expected_host copy N/A N/A expected_host4 N/A id N/A res N/A id N/A N/A expected_host4 N/A prefix 1.3.3.4/32 N/A N/A expected_host4 N/A display_prefix 1.3.3.4/24 N/A N/A N/A expected_list append expected_host4 N/A N/A N/A self assertEqual N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad expected_list N/A test_prefix_add_vrf N/A N/A self N/A N/A N/A  Test adding prefixes to VRF
         N/A args N/A from-prefix prefix_length N/A 1.3.3.0/24 32 N/A expected N/A alarm_priority authoritative_source avps comment country description display_prefix expires external_key family id indent monitor node order_id customer_id pool_id pool_name vrf_id vrf_rt vrf_name vlan inherited_tags tags status None nipap N/A None None test prefix 1.3.3.0/24 None None 4 131 0 None None None None None None 0 None None None N/A N/A assigned N/A vrf_attr N/A rt name 123:4567 test_prefix_add_vrf1 N/A vrf N/A N/A s add_vrf N/A auth attr ad vrf_attr N/A N/A vrf_attr N/A id N/A vrf N/A id N/A vrf_pref_attr N/A prefix vrf_id type description 1.3.3.0/24 N/A vrf N/A id assignment Test prefix 1.3.3.0/24 in vrf 123:4567 N/A prefix N/A N/A s add_prefix N/A auth attr ad vrf_pref_attr N/A N/A expected N/A id N/A prefix N/A id N/A N/A expected N/A vrf_rt N/A vrf_attr N/A rt N/A N/A expected N/A vrf_name N/A vrf_attr N/A name N/A N/A expected N/A display_prefix 1.3.3.0/24 N/A N/A expected N/A indent 0 N/A N/A N/A expected update vrf_pref_attr N/A vrf_pref N/A N/A N/A s list_prefix N/A auth prefix ad N/A id N/A expected N/A id N/A 0 N/A vrf_pref N/A N/A self _mangle_prefix_result vrf_pref N/A N/A N/A self assertEqual vrf_pref expected Prefix added with VRF ID reference not equal N/A vrf_pref_attr N/A vrf_rt type description N/A vrf_attr N/A rt host Test host 1.3.3.1/32 in vrf 123:4567 N/A prefix N/A N/A s add_prefix N/A auth attr args ad vrf_pref_attr args N/A N/A expected N/A id N/A prefix N/A id N/A N/A expected N/A vrf_id N/A vrf_attr N/A id N/A N/A expected N/A vrf_name N/A vrf_attr N/A name N/A N/A expected N/A display_prefix 1.3.3.1/24 N/A N/A expected N/A prefix 1.3.3.1/32 N/A N/A expected N/A indent 1 N/A N/A N/A expected update vrf_pref_attr N/A vrf_pref N/A N/A N/A s list_prefix N/A auth prefix ad N/A id N/A expected N/A id N/A 0 N/A vrf_pref N/A N/A self _mangle_prefix_result vrf_pref N/A N/A N/A self assertEqual vrf_pref expected Prefix added with VRF reference not equal N/A vrf_pref_attr N/A vrf_name type description N/A vrf_attr N/A name host Test host 1.3.3.2/32 in vrf 123:4567 N/A prefix N/A N/A s add_prefix N/A auth attr args ad vrf_pref_attr args N/A N/A expected N/A id N/A prefix N/A id N/A N/A expected N/A vrf_rt N/A vrf_attr N/A rt N/A N/A expected N/A vrf_id N/A vrf_attr N/A id N/A N/A expected N/A display_prefix 1.3.3.2/24 N/A N/A expected N/A prefix 1.3.3.2/32 N/A N/A expected N/A indent 1 N/A N/A N/A expected update vrf_pref_attr N/A vrf_pref N/A N/A N/A s list_prefix N/A auth prefix ad N/A id N/A expected N/A id N/A 0 N/A vrf_pref N/A N/A self _mangle_prefix_result vrf_pref N/A N/A N/A self assertEqual vrf_pref expected Prefix added with VRF name reference not equal N/A test_prefix_add_tags N/A N/A self N/A N/A N/A  Verify tag inheritance works correctly
         N/A expected N/A N/A expected_top N/A alarm_priority authoritative_source avps comment country display_prefix expires external_key family id indent monitor node order_id customer_id pool_id pool_name vrf_id vrf_rt vrf_name inherited_tags vlan status None nipap N/A None None 1.0.0.0/8 None None 4 131 0 None None None None None None 0 None default N/A None assigned N/A attr N/A prefix description type tags 1.0.0.0/8 top prefix reservation N/A top N/A prefix N/A N/A s add_prefix N/A auth attr ad attr N/A N/A N/A expected_top update attr N/A N/A expected_top N/A id N/A prefix N/A id N/A attr N/A prefix description type tags 1.3.3.0/24 bottom prefix assignment N/A bottom N/A prefix N/A N/A s add_prefix N/A auth attr ad attr N/A expected_bottom N/A N/A expected_top copy N/A N/A N/A expected_bottom update attr N/A N/A expected_bottom N/A id N/A prefix N/A id N/A N/A expected_bottom N/A display_prefix 1.3.3.0/24 N/A N/A expected_bottom N/A inherited_tags N/A top N/A N/A expected_bottom N/A indent 1 N/A expected N/A expected_top expected_bottom N/A N/A N/A self assertEqual N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad expected N/A attr N/A prefix description type tags 1.3.0.0/16 middle prefix reservation N/A middle N/A prefix N/A N/A s add_prefix N/A auth attr ad attr N/A expected_middle N/A N/A expected_top copy N/A N/A N/A expected_middle update attr N/A N/A expected_middle N/A id N/A prefix N/A id N/A N/A expected_middle N/A display_prefix 1.3.0.0/16 N/A N/A expected_middle N/A inherited_tags N/A top N/A N/A expected_middle N/A indent 1 N/A N/A expected_bottom N/A inherited_tags N/A middle top N/A N/A expected_bottom N/A indent 2 N/A expected N/A expected_top expected_middle expected_bottom N/A N/A N/A self assertEqual N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad expected N/A N/A N/A s remove_prefix N/A auth prefix ad N/A id N/A expected_middle N/A id N/A N/A expected_bottom N/A inherited_tags N/A top N/A N/A expected_bottom N/A indent 1 N/A expected N/A expected_top expected_bottom N/A N/A N/A self assertEqual N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad expected N/A N/A N/A s remove_prefix N/A auth prefix ad N/A id N/A expected_top N/A id N/A N/A expected_bottom N/A inherited_tags N/A N/A N/A expected_bottom N/A indent 0 N/A expected N/A expected_bottom N/A N/A N/A self assertEqual N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad expected N/A test_prefix_node N/A N/A self N/A N/A N/A  Test node constraints

            Setting the node value is not allowed for all prefix types. Make
            sure the constraints are working correctly.
         N/A expected N/A alarm_priority authoritative_source avps comment country type description display_prefix expires external_key family indent inherited_tags monitor node order_id customer_id pool_name pool_id tags vrf_rt vrf_id vrf_name vlan status None nipap N/A None None assignment test prefix 1.3.2.0/24 None None 4 0 N/A None None None None None None N/A None 0 default None assigned N/A expected_list N/A N/A attr N/A N/A N/A attr N/A prefix 1.3.2.0/24 N/A N/A attr N/A description test prefix N/A N/A attr N/A type assignment N/A res N/A N/A s add_prefix N/A auth attr ad attr N/A exp1 N/A N/A expected copy N/A N/A N/A exp1 update attr N/A N/A exp1 N/A id N/A res N/A id N/A N/A attr N/A prefix 1.3.3.0/24 N/A N/A attr N/A node test N/A N/A attr N/A type reservation N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault Not allowed to set 'node' value for prefixes of type 'reservation'. N/A N/A N/A N/A s add_prefix N/A auth attr ad attr N/A N/A attr N/A type assignment N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault Not allowed to set 'node' value for prefixes of type 'assignment' which do not have all bits set in netmask. N/A N/A N/A N/A s add_prefix N/A auth attr ad attr N/A N/A attr N/A prefix 1.3.3.0/32 N/A res N/A N/A s add_prefix N/A auth attr ad attr N/A exp2 N/A N/A expected copy N/A N/A N/A exp2 update attr N/A N/A exp2 N/A id N/A res N/A id N/A N/A exp2 N/A display_prefix 1.3.3.0 N/A N/A attr N/A type host N/A N/A attr N/A prefix 1.3.2.1/32 N/A res N/A N/A s add_prefix N/A auth attr ad attr N/A exp3 N/A N/A expected copy N/A N/A N/A exp3 update attr N/A N/A exp3 N/A id N/A res N/A id N/A N/A exp3 N/A display_prefix 1.3.2.1/24 N/A N/A exp3 N/A indent 1 N/A N/A N/A expected_list append exp1 N/A N/A N/A expected_list append exp3 N/A N/A N/A expected_list append exp2 N/A res N/A N/A self _mangle_prefix_result N/A N/A s list_prefix N/A auth ad N/A N/A N/A self assertEqual res expected_list N/A test_prefix_add_to_pool N/A N/A self N/A N/A N/A  Test adding prefixes to a pool
         N/A pool_attr N/A name description default_type ipv4_default_prefix_length pool_1 Test pool #1 assignment 24 N/A pool N/A N/A s add_pool N/A auth attr ad pool_attr N/A prefix_attr N/A prefix type description pool_id 1.3.0.0/16 reservation FOO N/A pool N/A id N/A N/A N/A s add_prefix N/A auth attr ad prefix_attr N/A prefix_attr N/A prefix type description pool_name 1.4.0.0/16 reservation FOO pool_1 N/A N/A N/A s add_prefix N/A auth attr ad prefix_attr N/A prefix_attr N/A prefix type description 1.5.0.0/16 reservation FOO N/A prefix N/A N/A s add_prefix N/A auth attr ad prefix_attr N/A N/A N/A s edit_prefix N/A auth prefix attr ad N/A id N/A prefix N/A id N/A pool_id N/A pool N/A id N/A prefix_attr N/A prefix type description 1.6.0.0/16 reservation FOO N/A prefix N/A N/A s add_prefix N/A auth attr ad prefix_attr N/A N/A N/A s edit_prefix N/A auth prefix attr ad N/A id N/A prefix N/A id N/A pool_name pool_1 N/A res N/A N/A s list_pool N/A auth pool ad N/A id N/A pool N/A id N/A N/A N/A self assertEquals N/A N/A res N/A 0 N/A prefixes N/A 1.3.0.0/16 1.4.0.0/16 1.5.0.0/16 1.6.0.0/16 N/A test_prefix_from_pool N/A N/A self N/A N/A N/A  Add a prefix from a pool
         N/A pool_attr N/A name description default_type ipv4_default_prefix_length pool_1 Test pool #1 assignment 24 N/A pool N/A N/A s add_pool N/A auth attr ad pool_attr N/A parent_prefix_attr N/A prefix type description pool_id 1.3.0.0/16 reservation FOO N/A pool N/A id N/A N/A N/A s add_prefix N/A auth attr ad parent_prefix_attr N/A args N/A from-pool family N/A name pool_1 4 N/A prefix_attr N/A description BAR N/A expected N/A prefix display_prefix description type comment country monitor node order_id customer_id pool_id pool_name vrf_id vrf_rt vrf_name external_key family indent alarm_priority authoritative_source 1.3.0.0/24 1.3.0.0/24 BAR assignment None None None None None None None None 0 None default None 4 1 None nipap N/A child N/A N/A s add_prefix N/A auth attr args ad prefix_attr args N/A test_prefix_from_pool_vrf N/A N/A self N/A N/A N/A  Add a prefix from a pool in a VRF
         N/A vrf_attr N/A name description rt vrf_1 Test VRF #1 123:123 N/A vrf N/A N/A s add_vrf N/A auth attr ad vrf_attr N/A pool_attr N/A name description default_type ipv4_default_prefix_length pool_1 Test pool for from-pool test assignment 24 N/A pool N/A N/A s add_pool N/A auth attr ad pool_attr N/A parent_prefix_attr N/A prefix vrf_rt type description pool_id 1.3.0.0/16 123:123 reservation FOO N/A pool N/A id N/A N/A N/A s add_prefix N/A auth attr ad parent_prefix_attr N/A args N/A from-pool family N/A name pool_1 4 N/A prefix_attr N/A description BAR N/A expected N/A prefix display_prefix description type comment country monitor node order_id customer_id pool_id pool_name vrf_id vrf_rt vrf_name expires external_key family indent alarm_priority authoritative_source avps vlan inherited_tags tags status 1.3.0.0/24 1.3.0.0/24 BAR assignment None None None None None None None None N/A vrf N/A id 123:123 vrf_1 None None 4 1 None nipap N/A None N/A N/A assigned N/A child N/A N/A s add_prefix N/A auth attr args ad prefix_attr args N/A N/A expected N/A id N/A child N/A id N/A p N/A N/A N/A s list_prefix N/A auth attr ad N/A id N/A child N/A id N/A 1 N/A p N/A N/A self _mangle_prefix_result p N/A N/A N/A self assertEquals p expected N/A test_prefix_edit_return N/A N/A self N/A N/A N/A  Check return value of edit_prefix
         N/A p1 N/A N/A s add_prefix N/A auth attr ad N/A prefix type description 1.3.3.0/24 assignment FOO N/A p2 N/A N/A s add_prefix N/A auth attr ad N/A prefix type description 1.3.3.1/32 host child 1 N/A p3 N/A N/A s add_prefix N/A auth attr ad N/A prefix type description 1.3.3.2/32 host child 2 N/A p4 N/A N/A s add_prefix N/A auth attr ad N/A prefix type description 1.3.3.3/32 host child 3 N/A ss_res N/A N/A N/A N/A s smart_search_prefix N/A auth query_string ad child 2 N/A result N/A 0 N/A edit_res N/A N/A N/A s edit_prefix N/A auth prefix attr ad N/A prefix 1.3.3.2/32 N/A description Kid 2 N/A 0 N/A N/A edit_res N/A added N/A N/A edit_res N/A last_modified N/A N/A ss_res N/A added N/A N/A ss_res N/A last_modified N/A N/A ss_res N/A description Kid 2 N/A N/A N/A self assertEqual ss_res edit_res N/A test_prefix_smart_search N/A N/A self N/A N/A N/A  Test the prefix smart search
         N/A p1 N/A N/A s add_prefix N/A auth attr ad N/A prefix type description 1.3.3.0/24 assignment FOO N/A N/A N/A s add_prefix N/A auth attr ad N/A prefix type description 1.3.3.0/32 host BAR N/A res N/A N/A s smart_search_prefix N/A auth query_string ad F N/A expected N/A interpretation search_options result N/A interpretation operator val1 val2 N/A operator attribute interpretation string regex description or comment or node or order_id or customer_id text F or N/A operator val1 val2 or N/A operator val1 val2 or N/A operator val1 val2 or N/A operator val1 val2 regex_match comment F N/A operator val1 val2 regex_match description F N/A operator val1 val2 regex_match node F N/A operator val1 val2 regex_match order_id F N/A operator val1 val2 regex_match customer_id F N/A include_all_children max_result include_all_parents parents_depth offset children_depth parent_prefix include_neighbors False 50 False 0 0 0 None False N/A N/A comment expires external_key family prefix authoritative_source avps id display_prefix monitor children prefix_length type match node description order_id customer_id vrf_id vrf_rt vrf_name pool_id pool_name alarm_priority indent country display vlan inherited_tags tags status None None None 4 1.3.3.0/24 nipap N/A N/A p1 N/A id 1.3.3.0/24 None 1 24 assignment True None FOO None None 0 None default None None None 0 None True None N/A N/A assigned N/A res N/A N/A self _mangle_prefix_result res N/A N/A N/A self assertEqual res expected N/A test_asn_add_list N/A N/A self N/A N/A N/A  Add ASN to NIPAP and list it
         N/A attr N/A asn name 1 Test ASN #1 N/A N/A N/A self assertEqual N/A N/A s add_asn N/A auth attr ad attr attr add_asn did not return correct ASN. N/A asn N/A N/A s list_asn N/A auth asn ad N/A asn 1 N/A N/A N/A self assertEqual N/A len asn 1 Wrong number of ASNs returned. N/A asn N/A asn N/A 0 N/A N/A N/A self assertEquals attr asn ASN in database not equal to what was added. N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault Duplicate value for N/A N/A N/A N/A s add_asn N/A auth attr ad attr N/A test_remove_asn N/A N/A self N/A N/A N/A  Remove ASN from NIPAP
         N/A attr N/A asn name 2 Test ASN #2 N/A asn N/A N/A s add_asn N/A auth attr ad attr N/A N/A N/A s remove_asn N/A auth asn ad N/A asn N/A asn N/A asn N/A N/A N/A self assertEquals 0 N/A len N/A N/A s list_asn N/A auth asn ad N/A asn 2 Removed ASN still in database N/A test_edit_asn N/A N/A self N/A N/A N/A  Edit ASNs
         N/A attr N/A asn name 3 Test ASN #3 N/A asn N/A N/A s add_asn N/A auth attr ad attr N/A N/A N/A s edit_asn N/A auth asn attr ad N/A asn N/A attr N/A asn N/A name b0rk N/A N/A N/A self assertEquals N/A N/A N/A N/A s list_asn N/A auth asn ad N/A asn 3 N/A 0 N/A name b0rk Edited ASN still has it's old name. N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault extraneous attribute N/A N/A N/A N/A s edit_asn N/A auth asn attr ad N/A asn 3 N/A asn name 4 Test ASN #4 N/A test_search_asn N/A N/A self N/A N/A N/A  Search ASNs
         N/A attr N/A asn name 4 This is AS number 4 N/A asn N/A N/A s add_asn N/A auth attr ad attr N/A q N/A operator val1 val2 equals asn N/A attr N/A asn N/A res N/A N/A s search_asn N/A auth query ad q N/A N/A N/A self assertEquals N/A len N/A res N/A result 1 equal search resulted in wrong number of hits N/A N/A N/A self assertEquals N/A N/A N/A res N/A result N/A 0 N/A name N/A attr N/A name search hit got wrong name N/A q N/A operator val1 val2 regex_match name number N/A res N/A N/A s search_asn N/A auth query ad q N/A N/A N/A self assertEquals N/A len N/A res N/A result 1 regex search resulted in wrong number of hits N/A N/A N/A self assertEquals N/A N/A N/A res N/A result N/A 0 N/A asn N/A attr N/A asn search hit got wrong asn N/A test_smart_search_asn N/A N/A self N/A N/A N/A  Test smart_search_asn function.
         N/A attr N/A asn name 5 Autonomous System Number 5 N/A asn N/A N/A s add_asn N/A auth attr ad attr N/A res N/A N/A s smart_search_asn N/A auth query_string ad Autonomous N/A N/A N/A self assertEquals N/A len N/A res N/A result 1 search resulted in wrong number of hits N/A N/A N/A self assertEquals N/A N/A N/A res N/A result N/A 0 N/A asn N/A attr N/A asn search hit got wrong asn N/A N/A N/A self assertEquals N/A N/A N/A res N/A interpretation N/A interpretation N/A attribute name search term interpreted as wrong type N/A res N/A N/A s smart_search_asn N/A auth query_string ad 5 N/A N/A N/A self assertEquals N/A len N/A res N/A result 1 search resulted in wrong number of hits N/A N/A N/A self assertEquals N/A N/A N/A res N/A result N/A 0 N/A asn N/A attr N/A asn search hit got wrong asn N/A N/A N/A self assertEquals N/A N/A N/A res N/A interpretation N/A interpretation N/A attribute asn search term interpretated as wrong type N/A test_pool_add_list N/A N/A self N/A N/A N/A  Test adding a pool and verifying it
         N/A attr N/A description default_type ipv4_default_prefix_length ipv6_default_prefix_length Test pool #1 assignment 31 112 N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault missing attribute name N/A N/A N/A N/A s add_pool N/A auth attr ad attr N/A N/A attr N/A name pool_1 N/A N/A attr N/A ipv4_default_prefix_length 50 N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault 1200: 'Default IPv4 prefix length must be an integer between 1 and 32. N/A N/A N/A N/A s add_pool N/A auth attr ad attr N/A N/A attr N/A ipv4_default_prefix_length 31 N/A N/A attr N/A ipv6_default_prefix_length over 9000 N/A N/A N/A self assertRaisesRegexp N/A xmlrpclib Fault 1200: 'Default IPv6 prefix length must be an integer between 1 and 128. N/A N/A N/A N/A s add_pool N/A auth attr ad attr N/A N/A attr N/A ipv6_default_prefix_length 112 N/A res N/A N/A s add_pool N/A auth attr ad attr N/A expected N/A N/A attr copy N/A N/A expected N/A id N/A res N/A id N/A N/A expected N/A prefixes N/A N/A N/A expected N/A vrf_id None N/A N/A expected N/A vrf_rt None N/A N/A expected N/A vrf_name None N/A N/A expected N/A tags N/A N/A N/A expected N/A avps N/A N/A p N/A N/A s list_pool N/A auth pool ad N/A id N/A expected N/A id N/A N/A N/A self assertEquals 1 N/A len p Wrong number of pools returned N/A p N/A p N/A 0 N/A N/A N/A self assertEquals N/A N/A self _mangle_pool_result p expected Received pool differs from added pool N/A test_edit_pool N/A N/A self N/A N/A N/A  Test editing a pool
         N/A attr N/A name description default_type ipv4_default_prefix_length ipv6_default_prefix_length test_pool_2 Test pool #2 reservation 31 112 N/A attr2 N/A name description default_type ipv4_default_prefix_length ipv6_default_prefix_length test_pool_2_edit Test pool #2 edit assignment 30 96 N/A res N/A N/A s add_pool N/A auth attr ad attr N/A N/A N/A s edit_pool N/A auth pool attr ad N/A id N/A res N/A id attr2 N/A expected N/A N/A attr2 copy N/A N/A expected N/A id N/A res N/A id N/A N/A expected N/A prefixes N/A N/A N/A expected N/A vrf_id None N/A N/A expected N/A vrf_rt None N/A N/A expected N/A vrf_name None N/A N/A expected N/A tags N/A N/A N/A expected N/A avps N/A N/A N/A N/A self assertEquals N/A N/A self _mangle_pool_result N/A N/A N/A s list_pool N/A auth pool ad N/A id N/A res N/A id N/A 0 expected N/A test_search_pool N/A N/A self N/A N/A N/A  Test searching pools
         N/A test_smart_search_pool N/A N/A self N/A N/A N/A  Test smart searching among pools
         N/A test_remove_pool N/A N/A self N/A N/A N/A  Test removing pools
         N/A N/A N/A N/A __name__ __main__ N/A N/A log N/A N/A logging getLogger N/A N/A N/A logging basicConfig N/A N/A N/A log setLevel N/A logging INFO N/A N/A N/A sys version_info N/A 2 7 N/A N/A N/A N/A unittest main verbosity 2 N/A N/A N/A N/A unittest main