def test_round(method, prec, exprange, restricted_range, itr, stat):
 for op in all_unary(prec, 9999, itr):
  n = random.randrange(10)
  roundop = (op[0], n)
  t = TestSet(method, roundop)
  try:
   if (not convert(t)):
    continue
   callfuncs(t)
   verify(t, stat)
  except VerifyError as err:
   log(err)

def test_round ( method , prec , exprange , restricted_range , itr , stat ) : for op in all_unary ( prec , 9999 , itr ) : n = random . randrange ( 10 ) roundop = ( op [ 0 ] , n ) t = TestSet ( method , roundop ) try : if ( not convert ( t ) ) : continue callfuncs ( t ) verify ( t , stat ) except VerifyError as err : log ( err )
iterate the __round__ method through many test cases .