Trivial comment: these could use `+=`

Less trivial comment: building up strings like this is fast on CPython because of an optimisation using reference counting, but may be slow on other implementations due to reallocating memory. It's often recommended to build a list and then use `''.join()` when you're done. Of course, that may be overkill if the tests are only going to be getting a handful of stream messages each.