コード例 #1
0
ファイル: test_downloader.py プロジェクト: dstansby/parfive
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)
コード例 #2
0
ファイル: test_downloader.py プロジェクト: dstansby/parfive
def test_empty_retry():
    f = Results()
    dl = Downloader()

    dl.retry(f)