diff --git a/src/allmydata/test/web/test_web.py b/src/allmydata/test/web/test_web.py index 599192574..25fdc9fa3 100644 --- a/src/allmydata/test/web/test_web.py +++ b/src/allmydata/test/web/test_web.py @@ -743,9 +743,9 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi d = self.GET("/?t=json") def _check(res): decoded = simplejson.loads(res) - self.failUnless("other_nodeid" in decoded['servers']) - self.failUnless("introducers" in decoded.keys()) - self.failUnless("servers" in decoded.keys()) + self.assertIn("other_nodeid", decoded['servers']) + self.assertIn("introducers", decoded) + self.assertIn("servers", decoded) d.addCallback(_check) return d