Module Import alias Import alias Import alias Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias identifier Expr Call NameLoad NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias 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 Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareIn NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr comprehension NameStore Call AttributeLoad NameLoad attr 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 Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad 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 Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str 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 Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareIn NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr 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 Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A datetime N/A logging N/A os 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 base BaseTest compass.db.api database compass.db.api network compass.db.api user user_api compass.db exception compass.utils flags compass.utils logsetting TestListSubnets N/A BaseTest N/A N/A Test list subnets. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestListSubnets self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestListSubnets self tearDown N/A test_list_subnets N/A N/A self N/A N/A N/A N/A N/A network add_subnet subnet 10.145.89.0/24 user N/A self user_object N/A list_subnet N/A N/A network list_subnets user N/A self user_object N/A expected N/A subnet id name 10.145.89.0/24 1 10.145.89.0/24 N/A N/A N/A self assertTrue N/A all N/A N/A item N/A N/A N/A list_subnet N/A 0 items N/A item N/A N/A expected items N/A N/A TestGetSubnet N/A BaseTest N/A N/A Test get subnet. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestGetSubnet self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestGetSubnet self tearDown N/A test_get_subnet N/A N/A self N/A N/A N/A N/A N/A network add_subnet subnet 10.145.89.0/24 user N/A self user_object N/A get_subnet N/A N/A network get_subnet 1 user N/A self user_object N/A N/A N/A self assertEqual 10.145.89.0/24 N/A get_subnet N/A subnet N/A tset_get_subnet_no_exist N/A N/A self N/A N/A N/A get_subnet_no_exist N/A N/A network get_subnet 2 user N/A self user_object N/A N/A N/A self assertEqual N/A get_subnet_no_exist N/A N/A TestAddSubnet N/A BaseTest N/A N/A Test add subnet. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestAddSubnet self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestAddSubnet self tearDown N/A test_add_subnet N/A N/A self N/A N/A N/A N/A N/A network add_subnet subnet 10.145.89.0/24 user N/A self user_object N/A add_subnets N/A N/A network list_subnets user N/A self user_object N/A expected 10.145.89.0/24 N/A add_subnet add_subnets N/A N/A N/A N/A self assertEqual expected N/A add_subnet N/A subnet N/A test_add_subnet_position N/A N/A self N/A N/A N/A N/A N/A network add_subnet True 10.145.89.0/23 user N/A self user_object N/A add_subnets N/A N/A network list_subnets user N/A self user_object N/A expected 10.145.89.0/23 N/A add_subnet add_subnets N/A N/A N/A N/A self assertEqual expected N/A add_subnet N/A subnet N/A test_add_subnet_session N/A N/A self N/A N/A N/A N/A N/A database session session N/A N/A N/A N/A network add_subnet N/A self user_object subnet 10.145.89.0/22 user N/A self user_object session session N/A add_subnets N/A N/A network list_subnets user N/A self user_object N/A expected 10.145.89.0/22 N/A add_subnet add_subnets N/A N/A N/A N/A self assertEqual expected N/A add_subnet N/A subnet N/A N/A TestUpdateSubnet N/A BaseTest N/A N/A Test update subnet. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestUpdateSubnet self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestUpdateSubnet self tearDown N/A test_update_subnet N/A N/A self N/A N/A N/A N/A N/A network add_subnet subnet 10.145.89.0/24 user N/A self user_object N/A N/A N/A network update_subnet 1 user N/A self user_object subnet 192.168.100.0/24 N/A update_subnet N/A N/A network list_subnets user N/A self user_object N/A expected N/A subnet id name 192.168.100.0/24 1 192.168.100.0/24 N/A N/A N/A self assertTrue N/A all N/A N/A item N/A N/A N/A update_subnet N/A 0 items N/A item N/A N/A expected items N/A test_update_subnet_no_exist N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exception DatabaseException N/A network update_subnet 2 user N/A self user_object N/A N/A TestDelSubnet N/A BaseTest N/A N/A Test delete subnet. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestDelSubnet self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestDelSubnet self tearDown N/A test_del_subnet N/A N/A self N/A N/A N/A N/A N/A network add_subnet user N/A self user_object subnet 10.145.89.0/24 N/A N/A N/A network del_subnet 1 user N/A self user_object N/A del_subnet N/A N/A network list_subnets user N/A self user_object N/A N/A N/A self assertEqual N/A del_subnet N/A test_del_subnet_not_exist N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exception RecordNotExists N/A network del_subnet 2 user N/A self user_object 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 unittest2 main