#NEWLINE# def test_pushheader_empty( ) : #NEWLINE# #INDENT# table1 = ( ( 'a' , 1 ) , ) #NEWLINE# table2 = pushheader ( table1 , [ 'foo' , 'bar' ] ) #NEWLINE# expect2 = ( ( 'foo' , 'bar' ) , ( 'a' , 1 ) ) #NEWLINE# ieq ( expect2 , table2 ) #NEWLINE# table1 = tuple ( ) #NEWLINE# table2 = pushheader ( table1 , [ 'foo' , 'bar' ] ) #NEWLINE# expect2 = ( ( 'foo' , 'bar' ) , ) #NEWLINE# ieq ( expect2 , table1 ) #NEWLINE# table1 = tuple ( ) #NEWLINE# table2 = pushheader ( table1 , 'foo' , 'bar' ) #NEWLINE# expect2 = ( ( 'foo' , 'bar' ) , ) #NEWLINE# ieq ( expect2 , table2 )