def verify_iterator_data(assertEqual, results):
 count = 0
 for (count, result) in enumerate(results, 1):
  params = get_all_primitive_params(result[0])
  assertEqual(len(params), len(result), msg='Not the right number of columns?')
  for (expected, actual) in zip(params, result):
   assertEqual(actual, expected)
 return count

def verify_iterator_data ( assertEqual , results ) : count = 0 for ( count , result ) in enumerate ( results , 1 ) : params = get_all_primitive_params ( result [ 0 ] ) assertEqual ( len ( params ) , len ( result ) , msg = 'Not the right number of columns?' ) for ( expected , actual ) in zip ( params , result ) : assertEqual ( actual , expected ) return count
check the result of get_data() when this is a list or iterator of tuples .