def setUp(self):
self.transport = proto_helpers.StringTransportWithDisconnection()<EOL>self.clock     = task.Clock()<EOL>MQTTBaseProtocol.callLater = self.clock.callLater<EOL>self.factory   = MQTTFactory(MQTTFactory.PUBLISHER)<EOL>self.addr = IPv4Address('<STR_LIT>','<STR_LIT:localhost>',<NUM_LIT>)<EOL>self._rebuild()<EOL>
Set up a conencted state