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