Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/e/l/eliot-0.3.0/eliot/tests/test_action.py   eliot(Download)
        def f(*args, **kwargs):
            return args, kwargs
        result = action.run(f, 1, 2, x=3)
        self.assertEqual(result, ((1, 2), {"x": 3}))
 
        result = []
        action = Action(None, "", "", "")
        action.run(lambda: result.append(currentAction()))
        self.assertEqual(result, [action])
 
        """
        action = Action(None, "", "", "")
        action.run(lambda: None)
        self.assertIs(currentAction(), None)
 
            def run(self, *args, **kwargs):
                ran.append((args, kwargs))
                return Action.run(self, *args, **kwargs)
 
        def f(result, extra, extra2):