def test_threadout_one(self):
l = []
-> self.out.setwritefunc(l.append)
print 42,13,
x = l.pop(0)
assert x == '42'
assert x == ' '
assert x == '13'