@@ -22,14 +22,16 @@ def _assert_basic_text(self, resp):
22
22
assert resp .content_type == 'text/plain'
23
23
assert resp .content_length > 0
24
24
25
+ assert 'proxy_magic = ""' in resp .body
26
+ assert 'wb.js' in resp .body
27
+
25
28
# 'Simulating' proxy by settings REQUEST_URI explicitly to http:// url and no SCRIPT_NAME
26
29
# would be nice to be able to test proxy more
27
30
def test_proxy_replay (self ):
28
31
resp = self .testapp .get ('/x-ignore-this-x' , extra_environ = dict (REQUEST_URI = 'http://www.iana.org/domains/idn-tables' , SCRIPT_NAME = '' ))
29
32
self ._assert_basic_html (resp )
30
33
31
34
assert '"20140126201127"' in resp .body
32
- assert 'wb.js' in resp .body
33
35
34
36
def test_proxy_replay_auth_filtered (self ):
35
37
headers = [('Proxy-Authorization' , 'Basic ' + base64 .b64encode ('pywb-filt-2:' ))]
@@ -39,7 +41,6 @@ def test_proxy_replay_auth_filtered(self):
39
41
self ._assert_basic_html (resp )
40
42
41
43
assert '"20140126200624"' in resp .body
42
- assert 'wb.js' in resp .body
43
44
44
45
def test_proxy_replay_auth (self ):
45
46
headers = [('Proxy-Authorization' , 'Basic ' + base64 .b64encode ('pywb' ))]
@@ -49,7 +50,6 @@ def test_proxy_replay_auth(self):
49
50
self ._assert_basic_html (resp )
50
51
51
52
assert '"20140127171238"' in resp .body
52
- assert 'wb.js' in resp .body
53
53
54
54
def test_proxy_replay_auth_no_coll (self ):
55
55
headers = [('Proxy-Authorization' , 'Basic ' + base64 .b64encode ('no-such-coll' ))]
0 commit comments