From b60506b0baa014643dec84e474afbfcc089f49a3 Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Mon, 8 Aug 2011 14:39:25 -0700
Subject: [PATCH] test_web.py: fix a test failure dependent on whether
 simplejson.loads returns a unicode or str object.

---
 src/allmydata/test/test_web.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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,
-- 
2.45.2