def test_simple_consumer_match(self):
l = []
py.log.setconsumer("x1", l.append)
-> p = py.log.Producer("x1 x2")
p("hello")
assert l
assert l[0].content() == "hello"