#NEWLINE# def test_linux_bridge_driver_plug( self ) : #NEWLINE# #INDENT# "Makes sure plug doesn't drop FORWARD by default.\n\n        Ensures bug 890195 doesn't reappear.\n        " #NEWLINE# def fake_execute( * args , **kwargs ) : #NEWLINE# #INDENT# return ( '' , '' ) #NEWLINE# #UNINDENT# self . stubs . Set ( utils , 'execute' , verify_add_rule ) #NEWLINE# def verify_add_rule( chain , rule ) : #NEWLINE# #INDENT# self . assertEqual ( 'FORWARD' , chain ) #NEWLINE# self . assertIn ( 'ACCEPT' , rule ) #NEWLINE# #UNINDENT# self . stubs . Set ( linux_net . iptables_manager . ipv4 [ 'filter' ] , 'add_rule' , verify_add_rule ) #NEWLINE# driver = linux_net . LinuxBridgeInterfaceDriver ( ) #NEWLINE# driver . plug ( { #NEWLINE# #INDENT# 'bridge' : 'br100' , #NEWLINE# 'bridge_interface' : 'eth0' , #NEWLINE# 'share_address' : False , #NEWLINE# #UNINDENT# } , 'fakemac' )