#NEWLINE# def _test_add_metadata_accept_rule( self , expected ) : #NEWLINE# #INDENT# def verify_add_rule( chain , rule ) : #NEWLINE# #INDENT# self . assertEqual ( 'INPUT' , chain ) #NEWLINE# self . assertEqual ( expected , rule ) #NEWLINE# #UNINDENT# self . stubs . Set ( linux_net . iptables_manager . ipv4 [ 'filter' ] , 'add_rule' , self ) #NEWLINE# linux_net . metadata_accept ( )