| 97 |
| 98 |
| 99 |
| 100 |
| 101 |
| 102 |
| 103 |
| 104 |
| 105 |
| 106 | |
def test_multi_consumer(self): |
l = [] |
py.log.setconsumer("x1", l.append) |
py.log.setconsumer("x1 x2", None) |
-> p = py.log.Producer("x1 x2") |
p("hello") |
assert not l |
py.log.Producer("x1")("hello") |
assert l |
assert l[0].content() == "hello" | |