def test_http_timeout(): with pytest.raises(TimeoutError): yield wait_for_http(host='localhost', port=2222, timeout=2)
def test_http(): yield wait_for_http(host='localhost', port=2345)