#NEWLINE# def test_aggregate_of_binop( self ) : #NEWLINE# #INDENT# query = '\n        OUTPUT(SUM(b+a)) :- {emp}(a, b, c, d)\n        ' . format ( emp = d . emp_key ) #NEWLINE# expected = collections . Counter ( [ ( sum ( [ ( a + b ) for ( a , b , c , d ) in self . emp_table ] ) , ) ] ) #NEWLINE# self . check_result ( query , expected )