Skip to content

Commit 53153e3

Browse files
committed
Add more complex test
1 parent 47bb565 commit 53153e3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

sample_archive/access/before.aclj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
org,iana)/ - {"access": "allow", "url": "http://www.iana.org/", "before": "20140126"}
2+
org,iana)/domains - {"access": "block", "url": "http://www.iana.org/domains", "before": "20140126"}
3+
org,iana)/domains/arpa - "access": "allow", "url": "http://www.iana.org/domains/arpa", "before": "20140126"}

tests/test_acl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ def test_acl_before(self):
108108
assert 'Access Blocked' in resp.text
109109

110110
resp = self.testapp.get('/pywb-acl-before/20140126200624mp_/http://www.iana.org/', status=200)
111-
111+
112+
resp = self.test.app.get('/pywb-acl-before/20140126200825mp/http://www.iana.org/domains', status=451)
113+
assert 'Access Blocked' in resp.text
114+
115+
resp = self.testapp.get('/pywb-acl-before/20140126201248mp_/http://www.iana.org/domains/arpa', status=200)
116+
112117
def test_acl_after(self):
113118
resp = self.testapp.get('/pywb-acl-after/20140126200624mp_/http://www.iana.org/', status=451)
114119
assert 'Access Blocked' in resp.text

0 commit comments

Comments
 (0)