'Assert that illegal strings cause the transport to be closed.'

def test_illegal(self):

    for s in self.illegalStrings:
        r = self.getProtocol()
        for c in iterbytes(s):
            r.dataReceived(c)
        self.assertTrue(r.transport.disconnecting)
