From: david-sarah Date: Mon, 8 Aug 2011 21:39:25 +0000 (-0700) Subject: test_web.py: fix a test failure dependent on whether simplejson.loads returns a unico... X-Git-Tag: trac-5200~10 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/index.php?a=commitdiff_plain;h=b60506b0baa014643dec84e474afbfcc089f49a3;p=tahoe-lafs%2Ftahoe-lafs.git test_web.py: fix a test failure dependent on whether simplejson.loads returns a unicode or str object. --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 69d8211d..f03313f7 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -366,9 +366,9 @@ class WebMixin(object): self.failUnlessReallyEqual(to_str(kids[u"n\u00fc.txt"][1]["ro_uri"]), self._bar_txt_uri) self.failUnlessIn("quux.txt", kids) - self.failUnlessReallyEqual(kids[u"quux.txt"][1]["rw_uri"], + self.failUnlessReallyEqual(to_str(kids[u"quux.txt"][1]["rw_uri"]), self._quux_txt_uri) - self.failUnlessReallyEqual(kids[u"quux.txt"][1]["ro_uri"], + self.failUnlessReallyEqual(to_str(kids[u"quux.txt"][1]["ro_uri"]), self._quux_txt_readonly_uri) def GET(self, urlpath, followRedirect=False, return_response=False,