def _assert_equal_entries(utest, found, output, count=None):
 utest.assertEqual(found[0], output[0])
 utest.assertEqual(found[1], (count or output[1]))
 (found_time, output_time) = (MyTime.localtime(found[2]), MyTime.localtime(output[2]))
 try:
  utest.assertEqual(found_time, output_time)
 except AssertionError as e:
  utest.assertEqual((float(found[2]), found_time), (float(output[2]), output_time))
 if ((len(output) > 3) and (count is None)):
  if ((os.linesep != '\n') or sys.platform.startswith('cygwin')):
   srepr = (lambda x: repr(x).replace('\\r', ''))
  else:
   srepr = repr
  utest.assertEqual(srepr(found[3]), srepr(output[3]))

def _assert_equal_entries ( utest , found , output , count = None ) : utest . assertEqual ( found [ 0 ] , output [ 0 ] ) utest . assertEqual ( found [ 1 ] , ( count or output [ 1 ] ) ) ( found_time , output_time ) = ( MyTime . localtime ( found [ 2 ] ) , MyTime . localtime ( output [ 2 ] ) ) try : utest . assertEqual ( found_time , output_time ) except AssertionError as e : utest . assertEqual ( ( float ( found [ 2 ] ) , found_time ) , ( float ( output [ 2 ] ) , output_time ) ) if ( ( len ( output ) > 3 ) and ( count is None ) ) : if ( ( os . linesep != '\n' ) or sys . platform . startswith ( 'cygwin' ) ) : srepr = ( lambda x : repr ( x ) . replace ( '\\r' , '' ) ) else : srepr = repr utest . assertEqual ( srepr ( found [ 3 ] ) , srepr ( output [ 3 ] ) )
little helper to unify comparisons with the target entries and report helpful failure reports instead of millions of seconds ;) .