#NEWLINE# def test_fname_pairs( self ) : #NEWLINE# #INDENT# a = [ 'foo1_a.txt' , os . path . join ( 'foo' , 'bar_x.txt' ) , 'foo5.txt' ] #NEWLINE# b = [ os . path . join ( 'oof' , 'bar_x.txt' ) , 'foo5_b.txt' , 'foo2_b.txt' ] #NEWLINE# pairs = fs . fname_pairs ( a , b ) #NEWLINE# for ( x , y ) in pairs : #NEWLINE# #INDENT# assert_in ( x , a ) #NEWLINE# assert_in ( y , x ) #NEWLINE# #UNINDENT# assert_list_equal ( pairs , [ [ os . path . join ( 'foo' , 'bar_x.txt' ) , os . path . join ( 'oof' , 'bar_x.txt' ) ] , [ 'foo5.txt' , 'foo5_b.txt' ] ] )