mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 00:24:13 +00:00
Fix tests on Python 3.
This commit is contained in:
parent
3c8550b666
commit
15f2d433ae
@ -173,7 +173,7 @@ class WebResultsRendering(unittest.TestCase):
|
||||
return c
|
||||
|
||||
def render_json(self, resource):
|
||||
return self.successResultOf(render(resource, {"output": ["json"]}))
|
||||
return self.successResultOf(render(resource, {b"output": [b"json"]}))
|
||||
|
||||
def render_element(self, element, args=None):
|
||||
if args is None:
|
||||
@ -186,7 +186,7 @@ class WebResultsRendering(unittest.TestCase):
|
||||
html = self.render_element(lcr)
|
||||
self.failUnlessIn(b"Literal files are always healthy", html)
|
||||
|
||||
html = self.render_element(lcr, args={"return_to": ["FOOURL"]})
|
||||
html = self.render_element(lcr, args={b"return_to": [b"FOOURL"]})
|
||||
self.failUnlessIn(b"Literal files are always healthy", html)
|
||||
self.failUnlessIn(b'<a href="FOOURL">Return to file.</a>', html)
|
||||
|
||||
@ -269,7 +269,7 @@ class WebResultsRendering(unittest.TestCase):
|
||||
self.failUnlessIn("File Check Results for SI=2k6avp", s) # abbreviated
|
||||
self.failUnlessIn("Not Recoverable! : rather dead", s)
|
||||
|
||||
html = self.render_element(w, args={"return_to": ["FOOURL"]})
|
||||
html = self.render_element(w, args={b"return_to": [b"FOOURL"]})
|
||||
self.failUnlessIn(b'<a href="FOOURL">Return to file/directory.</a>',
|
||||
html)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user