From: Brian Warner Date: Thu, 24 Jan 2008 01:07:34 +0000 (-0700) Subject: test_upload.py: implement remote_abort on our fake BucketWriter X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css/flags?a=commitdiff_plain;h=1ff21d1d64e9842b4b3fcc2dc9e615621e14b8b1;p=tahoe-lafs%2Ftahoe-lafs.git test_upload.py: implement remote_abort on our fake BucketWriter --- diff --git a/src/allmydata/test/test_upload.py b/src/allmydata/test/test_upload.py index d72458ff..df5d12a2 100644 --- a/src/allmydata/test/test_upload.py +++ b/src/allmydata/test/test_upload.py @@ -2,6 +2,7 @@ import os from twisted.trial import unittest from twisted.python.failure import Failure +from twisted.python import log from twisted.internet import defer from cStringIO import StringIO @@ -133,6 +134,9 @@ class FakeBucketWriter: precondition(not self.closed) self.closed = True + def remote_abort(self): + log.err("uh oh, I was asked to abort") + class FakeClient: DEFAULT_ENCODING_PARAMETERS = {"k":25, "happy": 75,