diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-20 15:02:55 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-20 15:02:55 -0700 |
commit | 677798a0b4617712e5ccc28a9ea89f9ca1ec3afa (patch) | |
tree | d35863174e8924785190e57b2b961bfa1942e1be /python/tests/routes.py | |
parent | b4eb110bd880f78c5da578fe897ae97d4c734984 (diff) | |
download | fatcat-677798a0b4617712e5ccc28a9ea89f9ca1ec3afa.tar.gz fatcat-677798a0b4617712e5ccc28a9ea89f9ca1ec3afa.zip |
python base32 idents
Diffstat (limited to 'python/tests/routes.py')
-rw-r--r-- | python/tests/routes.py | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/python/tests/routes.py b/python/tests/routes.py index 5a523efa..3391596e 100644 --- a/python/tests/routes.py +++ b/python/tests/routes.py @@ -19,18 +19,21 @@ def test_all_views(app): for route in ('work', 'release', 'creator', 'container', 'file'): print(route) rv = app.get('/{}/9999999999'.format(route)) - assert rv.status_code == 404 + assert rv.status_code == 400 rv = app.get('/{}/f1f046a3-45c9-ffff-ffff-ffffffffffff'.format(route)) + assert rv.status_code == 400 + + rv = app.get('/{}/ccccccccccccccccccccccccca'.format(route)) assert rv.status_code == 404 - rv = app.get('/container/00000000-0000-0000-1111-000000000002') + rv = app.get('/container/aaaaaaaaaaaaaeiraaaaaaaaai') assert rv.status_code == 200 - rv = app.get('/container/00000000-0000-0000-1111-000000000002/history') + rv = app.get('/container/aaaaaaaaaaaaaeiraaaaaaaaai/history') assert rv.status_code == 200 - rv = app.get('/container/00000000-0000-0000-1111-000000000002/edit') + rv = app.get('/container/aaaaaaaaaaaaaeiraaaaaaaaai/edit') assert rv.status_code == 200 rv = app.get('/container/create') @@ -45,31 +48,31 @@ def test_all_views(app): rv = app.get('/container/lookup?issnl=1234-5678') assert rv.status_code == 302 - rv = app.get('/creator/00000000-0000-0000-2222-000000000002') + rv = app.get('/creator/aaaaaaaaaaaaaircaaaaaaaaai') assert rv.status_code == 200 - rv = app.get('/creator/00000000-0000-0000-2222-000000000002/history') + rv = app.get('/creator/aaaaaaaaaaaaaircaaaaaaaaai/history') assert rv.status_code == 200 - rv = app.get('/creator/00000000-0000-0000-2222-000000000002/edit') + rv = app.get('/creator/aaaaaaaaaaaaaircaaaaaaaaai/edit') assert rv.status_code == 200 rv = app.get('/creator/lookup?orcid=0000-0003-2088-7465') assert rv.status_code == 302 - rv = app.get('/file/00000000-0000-0000-3333-000000000002') + rv = app.get('/file/aaaaaaaaaaaaamztaaaaaaaaai') assert rv.status_code == 200 rv = app.get('/file/lookup?sha1=7d97e98f8af710c7e7fe703abc8f639e0ee507c4') assert rv.status_code == 302 - rv = app.get('/release/00000000-0000-0000-4444-000000000002') + rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaai') assert rv.status_code == 200 - rv = app.get('/release/00000000-0000-0000-4444-000000000002/history') + rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaai/history') assert rv.status_code == 200 - rv = app.get('/release/00000000-0000-0000-4444-000000000002/edit') + rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaai/edit') assert rv.status_code == 200 rv = app.get('/release/create') @@ -84,13 +87,13 @@ def test_all_views(app): rv = app.get('/release/search') assert rv.status_code == 200 - rv = app.get('/work/00000000-0000-0000-5555-000000000002') + rv = app.get('/work/aaaaaaaaaaaaavkvaaaaaaaaai') assert rv.status_code == 200 - rv = app.get('/work/00000000-0000-0000-5555-000000000002/history') + rv = app.get('/work/aaaaaaaaaaaaavkvaaaaaaaaai/history') assert rv.status_code == 200 - rv = app.get('/work/00000000-0000-0000-5555-000000000002/edit') + rv = app.get('/work/aaaaaaaaaaaaavkvaaaaaaaaai/edit') assert rv.status_code == 200 rv = app.get('/work/create') |