Opened 13 years ago

Last modified 13 years ago

#3706 enhancement new

Testing twisted.web.resource.Resource instances is a trifle complicated.

Reported by: amberite Owned by:
Priority: normal Milestone:
Component: web Keywords:
Cc: Branch:
Author:

Description

Currently, in order to write tests for code that uses resource.Resource instances, you have to remember that Trial wants Deferreds, but resource.Resource returns bytes or the NOT_DONE_YET value. You can work around this by figuring out how to hook the Deferred that request.notifyFinish() returns, but exposing some utility code that takes care of this detail would be terribly helpful.

Change History (2)

comment:1 Changed 13 years ago by amberite

Owner: changed from jknight to Jean-Paul Calderone

comment:2 Changed 11 years ago by <automation>

Owner: Jean-Paul Calderone deleted
Note: See TracTickets for help on using tickets.