aboutsummaryrefslogtreecommitdiff
path: root/test/world_wide_library.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/world_wide_library.py')
-rw-r--r--test/world_wide_library.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/world_wide_library.py b/test/world_wide_library.py
index f66a6d5..bed6ec3 100644
--- a/test/world_wide_library.py
+++ b/test/world_wide_library.py
@@ -85,6 +85,8 @@ def dump_scripts(directory='./injected_scripts'):
file.write(script)
served_scripts_lock.release()
+some_data = '{"some": "data"}'
+
catalog = {
'http://gotmyowndoma.in':
(302, {'location': 'http://gotmyowndoma.in/index.html'}, None),
@@ -103,6 +105,9 @@ catalog = {
'https://gotmyowndoma.in/scripts_to_block_1.html':
(200, {}, here / 'data' / 'pages' / 'scripts_to_block_1.html'),
+ 'https://anotherdoma.in/resource/blocked/by/CORS.json':
+ lambda command, get_params, post_params: (200, {}, some_data),
+
'https://serve.scrip.ts/': serve_script,
'https://site.with.scripts.block.ed':