#NEWLINE# @ istest #NEWLINE# def lists_all_available_chains_and_rules( self ) : #NEWLINE# #INDENT# with self . execute_mock ( ) as execute : #NEWLINE# #INDENT# execute . return_value = 'some rules' #NEWLINE# result = self . role . list_rules ( ) #NEWLINE# execute . assert_called_with ( 'iptables -L' , stdout = True , sudo = True ) #NEWLINE# self . assertEqual ( self , 'some rules' )