There's an assertion missing in this test, I think. Maybe check whether the `StringIO` was at least filled with something?