'Call a method ``f`` wrapped in ``log_method`` passing it ``arg`` as an
argument, ``kwarg`` as a keyword argument and returning ``result`` as
its result.
:return: The logged action.'

def _logs_action_test(self, logger, arg, kwarg, result):

    class Foo(object, ):
        @log_method
        def f(self, foo, bar):
            return succeed(result)
    foo = Foo()
    d = foo.f(arg, bar=kwarg)
    self.assertEqual(result, self.successResultOf(d))
    action_type = self.make_action_type('acceptance:f')
    return assertHasAction(self, logger, action_type, True)
