#NEWLINE# def test_list_filtered( self ) : #NEWLINE# #INDENT# expected = [ dict ( name = 'eth0' , scope = 'global' , tentative = False , dadfailed = False , dynamic = False , cidr = '172.16.77.240/24' ) ] #NEWLINE# test_cases = [ ADDR_SAMPLE , ADDR_SAMPLE2 ] #NEWLINE# for test_case in test_cases : #NEWLINE# #INDENT# output = '\n' . join ( test_case . split ( '\n' ) [ 0 : 4 ] ) #NEWLINE# self . parent . _run . return_value = test_case #NEWLINE# self . assertEqual ( self . addr_cmd . list ( 'global' , filters = [ 'permanent' ] ) , expected ) #NEWLINE# self . _assert_call ( [ ] , ( 'show' , 'tap0' , 'permanent' , 'scope' , 'global' ) )