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

This commit is contained in:
Brian Warner 2009-02-24 17:20:50 -07:00
parent e1c925b373
commit 8d8250e44a

View File

@ -30,6 +30,7 @@ class WebRenderingMixin:
# use this to exercise an overridden renderHTTP, usually for # use this to exercise an overridden renderHTTP, usually for
# output=json or render_GET. It always returns a Deferred. # output=json or render_GET. It always returns a Deferred.
req = FakeRequest(**kwargs) req = FakeRequest(**kwargs)
req.fields = None
ctx = self.make_context(req) ctx = self.make_context(req)
d = defer.maybeDeferred(page.renderHTTP, ctx) d = defer.maybeDeferred(page.renderHTTP, ctx)
def _done(res): def _done(res):