mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 03:36:44 +00:00
Some testing for Eliot message validity
This commit is contained in:
parent
3020fb979d
commit
e226956d14
@ -7,6 +7,8 @@ from os.path import join, exists, isdir
|
|||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from twisted.internet import defer, task, reactor
|
from twisted.internet import defer, task, reactor
|
||||||
|
|
||||||
|
from eliot.testing import capture_logging
|
||||||
|
|
||||||
from allmydata.interfaces import IDirectoryNode
|
from allmydata.interfaces import IDirectoryNode
|
||||||
from allmydata.util.assertutil import precondition
|
from allmydata.util.assertutil import precondition
|
||||||
|
|
||||||
@ -399,7 +401,8 @@ class MagicFolderDbTests(unittest.TestCase):
|
|||||||
shutil.rmtree(self.temp)
|
shutil.rmtree(self.temp)
|
||||||
return super(MagicFolderDbTests, self).tearDown()
|
return super(MagicFolderDbTests, self).tearDown()
|
||||||
|
|
||||||
def test_create(self):
|
@capture_logging(None)
|
||||||
|
def test_create(self, logger):
|
||||||
self.db.did_upload_version(
|
self.db.did_upload_version(
|
||||||
relpath_u=u'fake_path',
|
relpath_u=u'fake_path',
|
||||||
version=0,
|
version=0,
|
||||||
@ -712,8 +715,9 @@ class MagicFolderAliceBobTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, Rea
|
|||||||
yield d0
|
yield d0
|
||||||
yield d1
|
yield d1
|
||||||
|
|
||||||
|
@capture_logging(None)
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_alice_delete_bob_restore(self):
|
def test_alice_delete_bob_restore(self, logger):
|
||||||
alice_fname = os.path.join(self.alice_magic_dir, 'blam')
|
alice_fname = os.path.join(self.alice_magic_dir, 'blam')
|
||||||
bob_fname = os.path.join(self.bob_magic_dir, 'blam')
|
bob_fname = os.path.join(self.bob_magic_dir, 'blam')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user