Module Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad keyword Call NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad keyword Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad keyword Dict Str Str Str Str Str NameLoad NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad keyword Dict Str Str Str Str Str Str Str NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad keyword Dict Str Str Str Str Str Str Str NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock N/A testtools N/A shade shade.tests.unit base TestNetwork N/A N/A base TestCase N/A test_create_network N/A N/A self mock_neutron N/A N/A N/A N/A N/A N/A self cloud create_network netname N/A N/A N/A N/A mock_neutron create_network assert_called_with body N/A dict network N/A dict name netname shared False admin_state_up True N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client test_create_network_specific_tenant N/A N/A self mock_neutron N/A N/A N/A N/A N/A N/A self cloud create_network netname project_id project_id_value N/A N/A N/A N/A mock_neutron create_network assert_called_with body N/A dict network N/A dict name netname shared False admin_state_up True tenant_id project_id_value N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client test_create_network_external N/A N/A self mock_neutron N/A N/A N/A N/A N/A N/A self cloud create_network netname external True N/A N/A N/A N/A mock_neutron create_network assert_called_with body N/A dict network N/A name shared admin_state_up router:external netname False True True N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client test_create_network_provider N/A N/A self mock_neutron N/A N/A N/A provider_opts N/A physical_network network_type segmentation_id mynet vlan vlan1 N/A N/A N/A N/A self cloud create_network netname provider provider_opts N/A N/A N/A N/A mock_neutron create_network assert_called_once_with body N/A dict network N/A name shared admin_state_up provider:physical_network provider:network_type provider:segmentation_id netname False True N/A provider_opts N/A physical_network N/A provider_opts N/A network_type N/A provider_opts N/A segmentation_id N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client test_create_network_provider_ignored_value N/A N/A self mock_neutron N/A N/A N/A provider_opts N/A physical_network network_type segmentation_id should_not_be_passed mynet vlan vlan1 1 N/A N/A N/A N/A self cloud create_network netname provider provider_opts N/A N/A N/A N/A mock_neutron create_network assert_called_once_with body N/A dict network N/A name shared admin_state_up provider:physical_network provider:network_type provider:segmentation_id netname False True N/A provider_opts N/A physical_network N/A provider_opts N/A network_type N/A provider_opts N/A segmentation_id N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client test_create_network_provider_wrong_type N/A N/A self N/A N/A N/A provider_opts invalid N/A N/A N/A testtools ExpectedException N/A shade OpenStackCloudException Parameter 'provider' must be a dict N/A N/A N/A N/A N/A self cloud create_network netname provider provider_opts N/A test_delete_network N/A N/A self mock_neutron mock_get N/A N/A N/A N/A mock_get return_value N/A dict id net-id name test-net N/A N/A N/A self assertTrue N/A N/A N/A self cloud delete_network test-net N/A N/A N/A mock_get assert_called_once_with test-net N/A N/A N/A N/A mock_neutron delete_network assert_called_once_with network net-id N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud get_network N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client test_delete_network_not_found N/A N/A self mock_get N/A N/A N/A N/A mock_get return_value None N/A N/A N/A self assertFalse N/A N/A N/A self cloud delete_network test-net N/A N/A N/A mock_get assert_called_once_with test-net N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud get_network test_delete_network_exception N/A N/A self mock_neutron mock_get N/A N/A N/A N/A mock_get return_value N/A dict id net-id name test-net N/A N/A N/A mock_neutron delete_network side_effect N/A Exception N/A N/A N/A testtools ExpectedException N/A shade OpenStackCloudException Error deleting network test-net N/A N/A N/A N/A N/A self cloud delete_network test-net N/A N/A N/A mock_get assert_called_once_with test-net N/A N/A N/A N/A mock_neutron delete_network assert_called_once_with network net-id N/A N/A N/A N/A mock patch object N/A shade OpenStackCloud get_network N/A N/A N/A mock patch object N/A shade OpenStackCloud neutron_client N/A