def test_simple_consumer_match_2(self):
l = []
p = py.log.Producer("x1 x2")
p.set_consumer(l.append)
-> p("42")
assert l
assert l[0].content() == "42"