def test_writeSequenceWithUnicodeRaisesException(self):

        def connected(protocols):
            client, server, port = protocols

            exc = self.assertRaises(
                TypeError,
                server.transport.writeSequence, [u"Unicode is not kosher"])

            self.assertEqual(str(exc), "Data must not be unicode")

            server.transport.loseConnection()

        reactor = self.buildReactor()
        d = self.getConnectedClientAndServer(reactor, "127.0.0.1",
                                             socket.AF_INET)
        d.addCallback(connected)
        d.addErrback(log.err)
        self.runReactor(reactor)
Decreases the numerical value of this IPAddress by num.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_tcp.py/WriteSequenceTestsMixin.test_writeSequenceWithUnicodeRaisesException--crossover with--dataset/ETHPy150Open drkjam/netaddr/netaddr/ip/__init__.py/IPAddress.__isub__