Beispiel #1
0
def test_watch_site_ok():
    url = "http://example-ok.com"
    httpretty.register_uri(httpretty.GET, url, status=200)

    assert watch(url) == 200
Beispiel #2
0
def test_watch_site_acceptable_redirect():
    url = "http://example-acceptable-redirect.com"
    httpretty.register_uri(httpretty.GET, url, status=302)

    assert watch(url) == 302