From: Brian Warner Date: Wed, 25 Feb 2009 00:20:50 +0000 (-0700) Subject: test/common_web.py: add a .fields attribute to our FakeRequest, since we support... X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=8d8250e44a9dc0a8f052785e60ec177d4e97b83f;p=tahoe-lafs%2Ftahoe-lafs.git test/common_web.py: add a .fields attribute to our FakeRequest, since we support versions of Nevow that are old enough to not do it themselves --- diff --git a/src/allmydata/test/common_web.py b/src/allmydata/test/common_web.py index 9f05f9b6..8b6a6474 100644 --- a/src/allmydata/test/common_web.py +++ b/src/allmydata/test/common_web.py @@ -30,6 +30,7 @@ class WebRenderingMixin: # use this to exercise an overridden renderHTTP, usually for # output=json or render_GET. It always returns a Deferred. req = FakeRequest(**kwargs) + req.fields = None ctx = self.make_context(req) d = defer.maybeDeferred(page.renderHTTP, ctx) def _done(res):