""" | |
Copyright 2021, Dana-Farber Cancer Institute and Weill Cornell Medicine | |
License: GNU GPL 2.0 | |
""" | |
import urllib.request | |
import pytest | |
def test_urls(url): | |
# Make sure that the urls linked in the manuscript are not broken! | |
# This should be a complete list of all urls in the manuscript + supplemental materials | |
r = urllib.request.urlopen(url) | |
# HTTP status code 200 means "OK" | |
assert r.getcode() == 200 | |