def setUp(self): """ Create and connect a L{finger.Finger} instance. """ self.transport = StringTransport() self.protocol = finger.Finger() self.protocol.makeConnection(self.transport)
def setUp(self): self.t = test_protocols.StringIOWithoutClosing() self.p = finger.Finger() self.p.makeConnection(protocol.FileWrapper(self.t))