#NEWLINE# @ mock . patch . object ( vif , '_check_ovs_supported_version' ) #NEWLINE# def test_get_neutron_network_ovs_integration_bridge( self , mock_check ) : #NEWLINE# #INDENT# self . flags ( integration_bridge = 'fake-bridge-id' , group = 'vmware' ) #NEWLINE# vif_info = network_model . NetworkInfo ( [ network_model . VIF ( type = network_model . VIF_TYPE_OVS , address = 'DE:AD:BE:EF:00:00' , network = self . _network ) ] ) [ 0 ] #NEWLINE# network_ref = vif . _get_neutron_network ( 'fake-session' , 'fake-cluster' , vif_info ) #NEWLINE# expected_ref = { #NEWLINE# #INDENT# 'type' : 'OpaqueNetwork' , #NEWLINE# 'network-id' : 'fake-bridge-id' , #NEWLINE# 'network-type' : 'opaque' , #NEWLINE# 'use-external-id' : False , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( self , network_ref ) #NEWLINE# mock_check . assert_called_once_with ( 'fake-session' )