]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_upload.py: implement remote_abort on our fake BucketWriter
authorBrian Warner <warner@allmydata.com>
Thu, 24 Jan 2008 01:07:34 +0000 (18:07 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 24 Jan 2008 01:07:34 +0000 (18:07 -0700)
src/allmydata/test/test_upload.py

index d72458ff8010f06611fa0acd52995543ea54025d..df5d12a2d5ba5c0d345a247ab7df6df96afbd3e2 100644 (file)
@@ -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,