#NEWLINE# def test_wrap_tuple_return( ) : #NEWLINE# #INDENT# tablea = etl . wrap ( ( ( 'foo' , 'bar' ) , ( 'A' , 1 ) , ( 'C' , 7 ) ) ) #NEWLINE# tableb = etl . wrap ( ( ( 'foo' , 'bar' ) , ( 'B' , 5 ) , ( 'C' , 7 ) ) ) #NEWLINE# ( added , removed ) = tablea . diff ( tablea ) #NEWLINE# eq_ ( ( 'foo' , 'bar' ) , added . header ( ) ) #NEWLINE# eq_ ( ( 'foo' , 'bar' ) , removed . header ( ) ) #NEWLINE# ieq ( etl . data ( added ) , added . data ( ) ) #NEWLINE# ieq ( etl . data ( removed ) , removed . data ( ) )