def test_unit_commandDaemon(): replay.commandDaemon('start') sleep(10) try: urllib2.urlopen('http://localhost:5001') except urllib2.HTTPError, e: assert e.code == 404
def test_unit_commandDaemon(): replay.commandDaemon('start') sleep(10) try: urllib2.urlopen('http://localhost:5001') except urllib2.HTTPError as e: assert e.code == 404 except Exception as e: assert False
def test_unit_commandDaemon(): replay.commandDaemon('start') sleep(10) try: urllib.request.urlopen('http://localhost:5001') except urllib.error.HTTPError as e: assert e.code == 404 except Exception as e: assert False