Skip to content

Commit 80e781b

Browse files
committed
Add more complex test
1 parent 47bb565 commit 80e781b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

sample_archive/access/before.aclj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
org,iana)/domains/arpa - {"access": "allow", "url": "http://www.iana.org/domains/arpa", "before": "20140127"}
2+
org,iana)/domains - {"access": "block", "url": "http://www.iana.org/domains", "before": "20140127"}
13
org,iana)/ - {"access": "allow", "url": "http://www.iana.org/", "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.testapp.get('/pywb-acl-before/20140126200825/http://www.iana.org/domains', status=451)
113+
assert 'Access Blocked' in resp.text
114+
115+
resp = self.testapp.get('/pywb-acl-before/20140126201248/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)