'Make a POP3 server protocol instance hooked up to a simple mailbox and
a transport that buffers output to a StringIO.'

def setUp(self):

    p = pop3.POP3()
    p.mbox = self.mailboxType(self.exceptionType)
    p.schedule = list
    self.pop3Server = p
    s = StringIO.StringIO()
    p.transport = internet.protocol.FileWrapper(s)
    p.connectionMade()
    s.truncate(0)
    self.pop3Transport = s
