summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-12 15:39:01 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-24 10:39:03 +0100
commite485a6395548fa2745f0328d5c00de8d70bbbdb4 (patch)
tree7dd202280d08d62aba3bf16e5b9a47c94b7f42b6
parent3b7371248f6562ee8afd312c4371b1e4193755d2 (diff)
downloadurlgrabber-e485a6395548fa2745f0328d5c00de8d70bbbdb4.tar.gz
Use a failing URL in two tests that are supposed to fail
IIUC, those tests called urlgrab or urlread with a valid address or a file name and expected it to fail. Let's call it with a URL that return 404 instead. Now the tests pass.
-rw-r--r--test/test_grabber.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_grabber.py b/test/test_grabber.py
index e026540..e5fdfab 100644
--- a/test/test_grabber.py
+++ b/test/test_grabber.py
@@ -444,13 +444,13 @@ class CheckfuncTestCase(TestCase):
"check failure with urlgrab checkfunc"
self.data = 'other data'
self.assertRaises(URLGrabError, self.g.urlgrab,
- short_ref_http, self.filename)
+ ref_404, self.filename)
def test_checkfunc_urlread_failure(self):
"check failure with urlread checkfunc"
self.data = 'other data'
self.assertRaises(URLGrabError, self.g.urlread,
- short_ref_http)
+ ref_404)
class RegetTestBase:
def setUp(self):