diff options
author | jahoti <jahoti@tilde.team> | 2021-09-06 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-09-06 00:00:00 +0000 |
commit | b1444d9c9ea065d7c97d5809c3ec5259cb01a1da (patch) | |
tree | 0ebd245fb1ffa77a3488a9445869c8d773cacd88 /test/world_wide_library.py | |
parent | 5dab077b9bb7564f2c556b197c5c416c41783112 (diff) | |
download | browser-extension-b1444d9c9ea065d7c97d5809c3ec5259cb01a1da.tar.gz browser-extension-b1444d9c9ea065d7c97d5809c3ec5259cb01a1da.zip |
Incorporate test suite from jahoti branch
Diffstat (limited to 'test/world_wide_library.py')
-rw-r--r-- | test/world_wide_library.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/world_wide_library.py b/test/world_wide_library.py new file mode 100644 index 0000000..fc9e095 --- /dev/null +++ b/test/world_wide_library.py @@ -0,0 +1,15 @@ +# Copyright (C) 2021 jahoti <jahoti@tilde.team> +# Licensing information is collated in the `copyright` file + +""" +Our helpful little stand-in for the Internet +""" + +catalog = { + 'http://gotmyowndoma.in': (302, {'location': 'http://gotmyowndoma.in/index.html'}, b''), + 'http://gotmyowndoma.in/': (302, {'location': 'http://gotmyowndoma.in/index.html'}, b''), + 'http://gotmyowndoma.in/index.html': (200, {}, 'data/pages/gotmyowndomain.html'), + 'https://gotmyowndoma.in': (302, {'location': 'https://gotmyowndoma.in/index.html'}, b''), + 'https://gotmyowndoma.in/': (302, {'location': 'https://gotmyowndoma.in/index.html'}, b''), + 'https://gotmyowndoma.in/index.html': (200, {}, 'data/pages/gotmyowndomain_https.html') +} |