Did I find the right examples for you? yes no

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

src/e/l/eliot-0.3.0/eliot/tests/test_action.py   eliot(Download)
        logger = MemoryLogger()
        action = Action(logger, "unique", "/", "sys:thename")
        action._finish()
        assertContainsFields(self, logger.messages[0],
                             {"task_uuid": "unique",
        logger = Logger()
        action = Action(logger, "unique", "/", "sys:thename", serializers)
        action._finish()
        self.assertIs(logger[0], serializers.success)
 
        logger = Logger()
        action = Action(logger, "unique", "/", "sys:thename", serializers)
        action._finish(Exception())
        self.assertIs(logger[0], serializers.failure)
 
        action = Action(logger, "unique", "/", "sys:thename")
        action._start({"key": "value"})
        action._finish()
        self.assertNotIn("key", logger.messages[1])
 
            def __str__(self):
                raise TypeError()
        action._finish(BadException())
        self.assertEqual(logger.messages[0]["reason"],
                         "eliot: unknown, unicode() raised exception")