Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num keyword Str keyword AttributeLoad NameLoad attr keyword TupleLoad Call NameLoad NameLoad Str Num Call NameLoad NameLoad Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num keyword Str keyword AttributeLoad NameLoad attr keyword TupleLoad Call NameLoad NameLoad Str Num Call NameLoad NameLoad Str Num handlers ExceptHandler type NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad Call NameLoad NameLoad attr Str Num orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListComp BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword NameLoad keyword ListLoad Str keyword ListLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return TupleLoad AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A sys N/A unittest libcloud.utils.py3 httplib libcloud.utils.py3 urlparse libcloud.common.types LibcloudError libcloud.compute.base Node libcloud.compute.drivers.dummy DummyNodeDriver libcloud.loadbalancer.base LoadBalancer Member Algorithm libcloud.loadbalancer.drivers.gogrid GoGridLBDriver libcloud.test MockHttpTestCase libcloud.test.file_fixtures LoadBalancerFileFixtures GoGridTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A GoGridLBDriver connectionCls conn_classes N/A None GoGridLBMockHttp N/A N/A GoGridLBMockHttp type None N/A N/A self driver N/A GoGridLBDriver user key N/A test_list_supported_algorithms N/A N/A self N/A N/A N/A algorithms N/A N/A N/A self driver list_supported_algorithms N/A N/A N/A self assertTrue N/A N/A Algorithm ROUND_ROBIN algorithms N/A N/A N/A self assertTrue N/A N/A Algorithm LEAST_CONNECTIONS algorithms N/A test_list_protocols N/A N/A self N/A N/A N/A protocols N/A N/A N/A self driver list_protocols N/A N/A N/A self assertEqual N/A len protocols 1 N/A N/A N/A self assertEqual N/A protocols N/A 0 http N/A test_list_balancers N/A N/A self N/A N/A N/A balancers N/A N/A N/A self driver list_balancers N/A N/A N/A self assertEqual N/A len balancers 2 N/A N/A N/A self assertEqual N/A N/A balancers N/A 0 name foo N/A N/A N/A self assertEqual N/A N/A balancers N/A 0 id 23517 N/A N/A N/A self assertEqual N/A N/A balancers N/A 1 name bar N/A N/A N/A self assertEqual N/A N/A balancers N/A 1 id 23526 N/A test_create_balancer N/A N/A self N/A N/A N/A balancer N/A N/A N/A self driver create_balancer name test2 port 80 protocol http algorithm N/A Algorithm ROUND_ROBIN members N/A N/A Member None 10.1.0.10 80 N/A Member None 10.1.0.11 80 N/A N/A N/A self assertEqual N/A balancer name test2 N/A N/A N/A self assertEqual N/A balancer id 123 N/A test_create_balancer_UNEXPECTED_ERROR N/A N/A self N/A N/A N/A N/A GoGridLBMockHttp type UNEXPECTED_ERROR N/A N/A N/A N/A N/A N/A self driver create_balancer name test2 port 80 protocol http algorithm N/A Algorithm ROUND_ROBIN members N/A N/A Member None 10.1.0.10 80 N/A Member None 10.1.0.11 80 N/A N/A N/A LibcloudError N/A N/A e N/A N/A N/A sys exc_info N/A 1 N/A N/A N/A self assertTrue N/A N/A N/A N/A str e find tried to add a member with an IP address not assigned to your account -1 N/A N/A N/A N/A self fail Exception was not thrown N/A test_destroy_balancer N/A N/A self N/A N/A N/A balancer N/A N/A N/A N/A self driver list_balancers N/A 0 N/A ret1 N/A N/A N/A self driver destroy_balancer balancer N/A ret2 N/A N/A balancer destroy N/A N/A N/A self assertTrue ret1 N/A N/A N/A self assertTrue ret2 N/A test_get_balancer N/A N/A self N/A N/A N/A balancer N/A N/A N/A self driver get_balancer balancer_id 23530 N/A N/A N/A self assertEqual N/A balancer name test2 N/A N/A N/A self assertEqual N/A balancer id 23530 N/A test_balancer_list_members N/A N/A self N/A N/A N/A balancer N/A N/A N/A self driver get_balancer balancer_id 23530 N/A members1 N/A N/A N/A self driver balancer_list_members balancer balancer N/A members2 N/A N/A balancer list_members N/A expected_members N/A set N/A 10.0.0.78:80 10.0.0.77:80 10.0.0.76:80 N/A N/A N/A self assertEqual N/A len members1 3 N/A N/A N/A self assertEqual N/A len members2 3 N/A N/A N/A self assertEqual expected_members N/A set N/A N/A %s:%s N/A N/A member ip N/A member port N/A member members1 N/A N/A N/A self assertEqual N/A N/A members1 N/A 0 balancer balancer N/A test_balancer_attach_compute_node N/A N/A self N/A N/A N/A balancer N/A LoadBalancer 23530 None None None None N/A self driver N/A node N/A Node id 1 name test state None public_ips N/A 10.0.0.75 private_ips N/A driver DummyNodeDriver N/A member1 N/A N/A N/A self driver balancer_attach_compute_node balancer node N/A member2 N/A N/A balancer attach_compute_node node N/A N/A N/A self assertEqual N/A member1 ip 10.0.0.75 N/A N/A N/A self assertEqual N/A member1 port 80 N/A N/A N/A self assertEqual N/A member2 ip 10.0.0.75 N/A N/A N/A self assertEqual N/A member2 port 80 N/A test_balancer_attach_member N/A N/A self N/A N/A N/A balancer N/A LoadBalancer 23530 None None None None N/A self driver N/A member N/A Member None ip 10.0.0.75 port 80 N/A member1 N/A N/A N/A self driver balancer_attach_member balancer member member N/A member2 N/A N/A balancer attach_member member member N/A N/A N/A self assertEqual N/A member1 ip 10.0.0.75 N/A N/A N/A self assertEqual N/A member1 port 80 N/A N/A N/A self assertEqual N/A member2 ip 10.0.0.75 N/A N/A N/A self assertEqual N/A member2 port 80 N/A test_balancer_detach_member N/A N/A self N/A N/A N/A balancer N/A LoadBalancer 23530 None None None None N/A self driver N/A member N/A N/A N/A N/A self driver balancer_list_members balancer N/A 0 N/A ret1 N/A N/A N/A self driver balancer_detach_member balancer member N/A ret2 N/A N/A balancer detach_member member N/A N/A N/A self assertTrue ret1 N/A N/A N/A self assertTrue ret2 N/A N/A GoGridLBMockHttp N/A MockHttpTestCase N/A N/A fixtures N/A LoadBalancerFileFixtures gogrid _api_grid_loadbalancer_list N/A N/A self method url body headers N/A N/A N/A body N/A N/A N/A self fixtures load loadbalancer_list.json N/A N/A N/A httplib OK body N/A N/A N/A httplib responses N/A N/A httplib OK N/A _api_grid_ip_list N/A N/A self method url body headers N/A N/A N/A body N/A N/A N/A self fixtures load ip_list.json N/A N/A N/A httplib OK body N/A N/A N/A httplib responses N/A N/A httplib OK N/A _api_grid_loadbalancer_add N/A N/A self method url body headers N/A N/A N/A query N/A N/A N/A urlparse urlparse url query N/A N/A N/A self assertTrue N/A N/A N/A query find loadbalancer.type=round+robin -1 N/A body N/A N/A N/A self fixtures load loadbalancer_add.json N/A N/A N/A httplib OK body N/A N/A N/A httplib responses N/A N/A httplib OK N/A _api_grid_ip_list_UNEXPECTED_ERROR N/A N/A self method url body headers N/A N/A N/A N/A N/A self _api_grid_ip_list method url body headers N/A _api_grid_loadbalancer_add_UNEXPECTED_ERROR N/A N/A self method url body headers N/A N/A N/A body N/A N/A N/A self fixtures load unexpected_error.json N/A N/A N/A httplib INTERNAL_SERVER_ERROR body N/A N/A N/A httplib responses N/A N/A httplib OK N/A _api_grid_loadbalancer_delete N/A N/A self method url body headers N/A N/A N/A body N/A N/A N/A self fixtures load loadbalancer_add.json N/A N/A N/A httplib OK body N/A N/A N/A httplib responses N/A N/A httplib OK N/A _api_grid_loadbalancer_get N/A N/A self method url body headers N/A N/A N/A body N/A N/A N/A self fixtures load loadbalancer_get.json N/A N/A N/A httplib OK body N/A N/A N/A httplib responses N/A N/A httplib OK N/A _api_grid_loadbalancer_edit N/A N/A self method url body headers N/A N/A N/A body N/A N/A N/A self fixtures load loadbalancer_edit.json N/A N/A N/A httplib OK body N/A N/A N/A httplib responses N/A N/A httplib OK N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A N/A unittest main