Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_web_source.py

Issue 29968569: Issue 4014 - Publish python-abp on PyPI (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Address comment on PS5 Created Jan. 3, 2019, 9:32 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/test_fs_source.py ('k') | tox.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_web_source.py
===================================================================
--- a/tests/test_web_source.py
+++ b/tests/test_web_source.py
@@ -69,3 +69,10 @@
web_mock.side_effect = HTTPError('', 404, 'Not found', [], StringIO(b''))
with pytest.raises(NotFound):
list(http_source.get('//foo/bar.txt'))
+
+
+def test_500(web_mock, http_source):
+ web_mock.side_effect = HTTPError('', 500, 'Internal Server Error', [],
+ StringIO(b''))
+ with pytest.raises(HTTPError):
+ list(http_source.get('//foo/bar.txt'))
« no previous file with comments | « tests/test_fs_source.py ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld