def METHOD_NAME(self):
    class Foo:
        def __float__(self):
            return 1.0
    class Bar(object):
        def __float__(self):
            return 1.0
    self.assertEqual(cmath.log(Foo()), 0.0)
    self.assertEqual(cmath.log(Bar()), 0.0)