#NEWLINE# def test_vlan_override( self ) : #NEWLINE# #INDENT# 'Makes sure vlan_interface flag overrides network bridge_interface.\n\n        Allows heterogeneous networks a la bug 833426\n        ' #NEWLINE# driver = linux_net . LinuxBridgeInterfaceDriver ( ) #NEWLINE# info = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# @ staticmethod #NEWLINE# def test_ensure( vlan , bridge , interface , network , mac_address , mtu ) : #NEWLINE# #INDENT# info [ 'passed_interface' ] = interface #NEWLINE# #UNINDENT# self . stubs . Set ( linux_net . LinuxBridgeInterfaceDriver , 'ensure_vlan_bridge' , test_ensure ) #NEWLINE# network = { #NEWLINE# #INDENT# 'bridge' : 'br100' , #NEWLINE# 'bridge_interface' : 'base_interface' , #NEWLINE# 'share_address' : False , #NEWLINE# 'vlan' : 'fake' , #NEWLINE# #UNINDENT# } #NEWLINE# self . flags ( vlan_interface = '' ) #NEWLINE# driver . plug ( network , 'fakemac' ) #NEWLINE# self . assertEqual ( 'base_interface' , info [ 'passed_interface' ] ) #NEWLINE# self . flags ( vlan_interface = 'override_interface' ) #NEWLINE# driver . plug ( network , 'fakemac' ) #NEWLINE# self . assertEqual ( 'override_interface' , info [ 'passed_interface' ] ) #NEWLINE# driver . plug ( network , 'fakemac' )