def do_func(self, func):
        def wrap(params, output):
            expr = "Math.%s(%s)" % (func, params)
            print 'Testing `%s`' % expr
            self.do_expr(expr, output)
        return wrap
dataset/ETHPy150Open mozilla/app-validator/tests/js/test_math.py/TestMathFuncs.do_func/original