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_output.py   eliot(Download)
        destinations.add(dest.append)
        destinations.add(dest2.append)
        destinations.send(message)
        self.assertEqual(dest, [message])
        self.assertEqual(dest2, [message])
        destinations.add(dest3.append)
 
        destinations.send(b"hello")
        self.assertEqual(dest, [b"hello"])
        self.assertEqual(dest2, [])
        destinations.add(dest)
 
        destinations.send(b"hello")
        destinations.send(b"world")
        self.assertEqual(dest, [b"world"])
        destinations.add(dest.append)
        destinations.remove(dest.append)
        destinations.send(message)
        self.assertEqual(dest, [])