def METHOD_NAME(self):
    class EOFHandler(SocketServer.StreamRequestHandler):
        def handle(self):
            # EOF without sending a complete welcome message.
            self.wfile.write('* OK')
    with self.reaped_server(EOFHandler) as server:
        self.assertRaises(imaplib.IMAP4.abort,
                          self.imap_class, *server.server_address)