'L{FileDescriptor.write} doesn\'t accept unicode data.'

def test_writeWithUnicodeRaisesException(self):

    fileDescriptor = FileDescriptor(reactor=object())
    self.assertRaises(TypeError, fileDescriptor.write, u'foo')
