import unittest

from chainer import testing


class Dummy(object):
    pass


class TestNoNumpyFunction(unittest.TestCase):

    def test_no_numpy_function(self):
        with self.assertRaises(ValueError):
            testing.unary_math_function_unittest(Dummy())  # no numpy.dummy


testing.run_module(__name__, __file__)

import unittest

from chainer import testing


def dummy():
    pass


class TestNoNumpyFunction(unittest.TestCase):

    def test_no_numpy_function(self):
        with self.assertRaises(ValueError):
            testing.unary_math_function_unittest(dummy)  # no numpy.dummy


testing.run_module(__name__, __file__)

Fix test of math function testing helper.
Fix test of math function testing helper.

  import unittest
  
  from chainer import testing
  
  
- class Dummy(object):
+ def dummy():
      pass
  
  
  class TestNoNumpyFunction(unittest.TestCase):
  
      def test_no_numpy_function(self):
          with self.assertRaises(ValueError):
-             testing.unary_math_function_unittest(Dummy())  # no numpy.dummy
+             testing.unary_math_function_unittest(dummy)  # no numpy.dummy
  
  
  testing.run_module(__name__, __file__)
  
Fix test of math function testing helper.
## Code Before:
import unittest

from chainer import testing


class Dummy(object):
    pass


class TestNoNumpyFunction(unittest.TestCase):

    def test_no_numpy_function(self):
        with self.assertRaises(ValueError):
            testing.unary_math_function_unittest(Dummy())  # no numpy.dummy


testing.run_module(__name__, __file__)

## Instruction:
Fix test of math function testing helper.
## Code After:
import unittest

from chainer import testing


def dummy():
    pass


class TestNoNumpyFunction(unittest.TestCase):

    def test_no_numpy_function(self):
        with self.assertRaises(ValueError):
            testing.unary_math_function_unittest(dummy)  # no numpy.dummy


testing.run_module(__name__, __file__)
