def test_noUnicode(self):
        s = proto_helpers.StringTransport()
        self.assertRaises(TypeError, s.write, u'foo')
Test that L{proto_helpers.StringTransport} doesn't accept unicode data.
dataset/ETHPy150Open twisted/twisted/twisted/test/test_protocols.py/StringTransportTests.test_noUnicode