Ah ok, makes sense.  Could pass the mock-wrapped StringIO maybe?  At that rate though probably not worth the change.