#NEWLINE# def test_on_get_response_networkv2_public( self ) : #NEWLINE# #INDENT# 'Test working path of NetworkV2()' #NEWLINE# ( client , env ) = get_client_env ( query_string = 'name=123321' ) #NEWLINE# net_vlan = client [ 'Network_Vlan' ] #NEWLINE# net_vlan . getObject . return_value = { #NEWLINE# #INDENT# 'id' : 11 , #NEWLINE# 'name' : 'Public Network' , #NEWLINE# 'subnets' : [ { #NEWLINE# #INDENT# 'id' : 1 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : 3 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : 5 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'vlanNumber' : 999 , #NEWLINE# 'networkSpace' : 'PUBLIC' , #NEWLINE# #UNINDENT# } #NEWLINE# req = falcon . Request ( env ) #NEWLINE# resp = falcon . Response ( ) #NEWLINE# networks . NetworkV2 ( ) . on_get ( req , resp , 11 ) #NEWLINE# self . check_response_body ( resp . body [ 'network' ] ) #NEWLINE# self . assertEqual ( resp . status , 200 ) #NEWLINE# self . assertEqual ( resp . body [ 'network' ] [ 'provider:physical_network' ] , False )