ssurts are strings now

because they're friendlier that way in rethinkdb
This commit is contained in:
Noah Levitt 2018-05-16 16:43:10 -07:00
parent 399c097c7c
commit 5bb392ec7c
2 changed files with 18 additions and 18 deletions

View file

@ -454,7 +454,7 @@ def test_seed_redirect(httpd):
site = brozzler.Site(rr, {
'seed': 'http://localhost:%s/site5/redirect/' % httpd.server_port,
'warcprox_meta': {'captures-table-extra-fields':{'test_id':test_id}}})
assert site.scope == {'accepts': [{'ssurt': ('localhost,//%s:http:/site5/redirect/' % httpd.server_port).encode('ascii')}]}
assert site.scope == {'accepts': [{'ssurt': 'localhost,//%s:http:/site5/redirect/' % httpd.server_port}]}
frontier = brozzler.RethinkDbFrontier(rr)
brozzler.new_site(frontier, site)