def testConnectionLost(self): protocol = ModbusTcpProtocol() protocol.connectionLost("What ever reason")
def testTCPServerDisconnect(self): protocol = ModbusTcpProtocol() protocol.connectionLost('because of an error')