

def test_noUnicode(self):
    "\n        Test that L{proto_helpers.StringTransport} doesn't accept unicode data.\n        "
    s = proto_helpers.StringTransport()
    self.assertRaises(TypeError, s.write, 'foo')

dataset/ETHPy150Open twisted/twisted/twisted/test/test_protocols.py StringTransportTests.test_noUnicode/original