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)
def test_empty_retry(): f = Results() dl = Downloader() dl.retry(f)