def setUp(self):
        global _server

        if not _server:
            _server = Server()
            _server.start()
            wait = 5
            running = False
            while not running and wait > 0:
                try:
                    urlopen(WebGuiTest.defaulturl).read()
                    running = True
                except (URLError, socket_error, IOError):
                    wait -= 1
                    sleep(1)
Test that a POST request generates a new Unsubscribe record
dataset/ETHPy150Open pympler/pympler/test/gui/test_web.py/WebGuiTest.setUp--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/mailer/tests/test_views.py/TestUnsubscribeView.test_post_creates_record