#NEWLINE# def test_rowreduce_empty( ) : #NEWLINE# #INDENT# table = ( ( 'foo' , 'bar' ) , ) #NEWLINE# expect = ( ( 'foo' , 'bar' ) , ) #NEWLINE# reducer = ( lambda key , rows : ( key , [ r [ 0 ] for r in rows ] ) ) #NEWLINE# actual = rowreduce ( table , key = 'foo' , reducer = reducer , header = ( 'foo' , 'bar' ) ) #NEWLINE# ieq ( expect , actual )