diff --git a/pywb/recorder/test/test_recorder.py b/pywb/recorder/test/test_recorder.py index 80b329d91..6cc6e8895 100644 --- a/pywb/recorder/test/test_recorder.py +++ b/pywb/recorder/test/test_recorder.py @@ -262,7 +262,7 @@ def test_record_skip_wrong_coll(self): resp = self._test_warc_write(recorder_app, 'httpbin.org', '/get?foo=bar') assert b'HTTP/1.1 200 OK' in resp.body - assert b'"foo":"bar"' in resp.body + assert b'"foo": "bar"' in resp.body self._test_all_warcs('/warcs/', 2) @@ -542,7 +542,7 @@ def test_record_multiple_writes_rollover_idle(self): '/get?goo=bar', '¶m.recorder.coll=GOO') assert b'HTTP/1.1 200 OK' in resp.body - assert b'"goo":"bar"' in resp.body + assert b'"goo": "bar"' in resp.body self._test_all_warcs('/warcs/GOO/', 2) diff --git a/pywb/warcserver/test/test_handlers.py b/pywb/warcserver/test/test_handlers.py index ee8be49f1..74a4a0a94 100644 --- a/pywb/warcserver/test/test_handlers.py +++ b/pywb/warcserver/test/test_handlers.py @@ -162,7 +162,7 @@ def test_live_resource(self): assert resp.headers['Memento-Datetime'] != '' assert b'HTTP/1.1 200 OK' in resp.body - assert b'"foo":"bar"' in resp.body + assert b'"foo": "bar"' in resp.body assert 'ResErrors' not in resp.headers @@ -178,7 +178,7 @@ def test_live_post_resource(self): assert resp.headers['Memento-Datetime'] != '' assert b'HTTP/1.1 200 OK' in resp.body - assert b'"foo":"bar"' in resp.body + assert b'"foo": "bar"' in resp.body assert 'ResErrors' not in resp.headers @@ -288,7 +288,7 @@ def test_agg_live_postreq(self): assert resp.headers['Memento-Datetime'] != '' assert b'HTTP/1.1 200 OK' in resp.body - assert b'"foo":"bar"' in resp.body + assert b'"foo": "bar"' in resp.body #assert json.loads(resp.headers['ResErrors']) == {"rhiz": "NotFoundException('https://webenact.rhizome.org/vvork/http://httpbin.org/get?foo=bar',)"} assert "NotFoundException('https://webenact.rhizome.org/vvork/" in json.loads(resp.headers['ResErrors'])['rhiz'] diff --git a/tests/test_live_rewriter.py b/tests/test_live_rewriter.py index 25891e500..ab022d26c 100644 --- a/tests/test_live_rewriter.py +++ b/tests/test_live_rewriter.py @@ -76,14 +76,14 @@ def test_live_live_post(self, fmod_sl): resp = self.post('/live/{0}httpbin.org/post', fmod_sl, {'foo': 'bar', 'test': 'abc'}) assert resp.status_int == 200 resp.charset = 'utf-8' - assert '"foo" :"bar"' in resp.text - assert '"test" :"abc"' in resp.text + assert '"foo": "bar"' in resp.text + assert '"test": "abc"' in resp.text assert resp.status_int == 200 def test_live_anchor_encode(self, fmod_sl): resp = self.get('/live/{0}httpbin.org/get?val=abc%23%23xyz', fmod_sl) assert 'get?val=abc%23%23xyz"' in resp.text - assert '"val" :"abc##xyz"' in resp.text + assert '"val": "abc##xyz"' in resp.text #assert '"http://httpbin.org/anything/abc##xyz"' in resp.text assert resp.status_int == 200 @@ -181,7 +181,7 @@ def test_live_video_info(self): def test_deflate(self, fmod_sl): resp = self.get('/live/{0}http://httpbin.org/deflate', fmod_sl) - assert b'"deflated" :true' in resp.body + assert b'"deflated": true' in resp.body def test_live_origin_and_referrer(self, fmod_sl): headers = {'Referer': 'http://localhost:80/live/{0}http://example.com/test'.format(fmod_sl),