Exemplo n.º 1
0
def test_results():
    res = Results()

    res.append("hello")

    res.add_error("wibble", "notaurl", "out of cheese")

    assert "notaurl" in repr(res)
    assert "hello" in repr(res)
    assert "out of cheese" in repr(res)
Exemplo n.º 2
0
def test_empty_retry():
    f = Results()
    dl = Downloader()

    dl.retry(f)