#NEWLINE# def test_create_and_list_routers( self ) : #NEWLINE# #INDENT# network_create_args = { #NEWLINE# #INDENT# 'router:external' : True , #NEWLINE# #UNINDENT# } #NEWLINE# subnet_create_args = { #NEWLINE# #INDENT# 'allocation_pools' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# subnet_cidr_start = 'default_cidr' #NEWLINE# subnets_per_network = 5 #NEWLINE# router_create_args = { #NEWLINE# #INDENT# 'admin_state_up' : True , #NEWLINE# #UNINDENT# } #NEWLINE# scenario = network . NeutronNetworks ( self . context ) #NEWLINE# scenario . _create_network_structure = mock . Mock ( ) #NEWLINE# scenario . _list_routers = mock . Mock ( ) #NEWLINE# scenario . create_and_list_routers ( network_create_args = network_create_args , subnet_create_args = subnet_create_args , subnet_cidr_start = subnet_cidr_start , subnets_per_network = subnets_per_network , router_create_args = router_create_args ) #NEWLINE# scenario . _create_network_structure . assert_called_once_with ( network_create_args , subnet_create_args , subnet_cidr_start , subnets_per_network , router_create_args ) #NEWLINE# scenario . _list_routers . assert_called_once_with ( )