'A cStringIO pickled with bytes in it will yield an L{io.BytesIO} on
python 3.'

def test_unpickleBytesIO(self):

    pickledStringIWithText = "ctwisted.persisted.styles\nunpickleStringI\np0\n(S'test'\np1\nI0\ntp2\nRp3\n."
    loaded = pickle.loads(pickledStringIWithText)
    self.assertIsInstance(loaded, io.StringIO)
    self.assertEqual(loaded.getvalue(), u'test')
