def test_writeSequenceWithUnicodeRaisesException(self):
        """
        L{FileDescriptor.writeSequence} doesn't accept unicode data.
        """
        fileDescriptor = FileDescriptor(reactor=object())
        self.assertRaises(
            TypeError, fileDescriptor.writeSequence, [b'foo', u'bar', b'baz'])

        L{FileDescriptor.writeSequence} doesn't accept unicode data.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_filedescriptor.py