[tahoe-lafs-trac-stream] [tahoe-lafs] #1301: use a mock decorator for test methods that return Deferreds

tahoe-lafs trac at tahoe-lafs.org
Mon Aug 8 20:57:18 PDT 2011


#1301: use a mock decorator for test methods that return Deferreds
----------------------------+----------------------------------------
     Reporter:  davidsarah  |      Owner:  somebody
         Type:  defect      |     Status:  new
     Priority:  minor       |  Milestone:  undecided
    Component:  code        |    Version:  1.8.1
   Resolution:              |   Keywords:  mock twisted deferred test
Launchpad Bug:              |
----------------------------+----------------------------------------

Comment (by davidsarah):

 Is this useful?
 http://twistedmatrix.com/documents/10.1.0/api/twisted.trial.unittest.TestCase.html#patch

 It's not as sophisticated as the {{{mock}}} library, but it might suffice
 for the cases we currently need, until we can depend on a version of
 {{{mock}}} that has this feature.

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1301#comment:3>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list