From: Brian Warner Date: Wed, 19 Nov 2008 23:02:12 +0000 (-0700) Subject: test_dirnode: add an explainError call X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/%22doc.html/using.html?a=commitdiff_plain;h=4ada26101bb16782b1af9501526e5cbf3e7fdc6e;p=tahoe-lafs%2Ftahoe-lafs.git test_dirnode: add an explainError call --- diff --git a/src/allmydata/test/test_dirnode.py b/src/allmydata/test/test_dirnode.py index 3e1c9729..cc2be476 100644 --- a/src/allmydata/test/test_dirnode.py +++ b/src/allmydata/test/test_dirnode.py @@ -12,7 +12,7 @@ from allmydata.interfaces import IURI, IClient, IMutableFileNode, \ from allmydata.util import hashutil from allmydata.monitor import Monitor from allmydata.test.common import make_chk_file_uri, make_mutable_file_uri, \ - FakeDirectoryNode, create_chk_filenode + FakeDirectoryNode, create_chk_filenode, ErrorMixin from allmydata.checker_results import CheckerResults, CheckAndRepairResults import common_util as testutil @@ -87,7 +87,8 @@ class FakeClient: return d -class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin): +class Dirnode(unittest.TestCase, + testutil.ShouldFailMixin, testutil.StallMixin, ErrorMixin): def setUp(self): self.client = FakeClient() @@ -700,6 +701,7 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin): d.addCallback(_then) + d.addErrback(self.explain_error) return d class DeepStats(unittest.TestCase):