mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
Make these checks a little more informative
This commit is contained in:
parent
c63a75dd2a
commit
641cb8a506
@ -682,8 +682,17 @@ class CheckerMixin(object):
|
|||||||
def _check_version_in_dmd(self, magicfolder, relpath_u, expected_version):
|
def _check_version_in_dmd(self, magicfolder, relpath_u, expected_version):
|
||||||
encoded_name_u = magicpath.path2magic(relpath_u)
|
encoded_name_u = magicpath.path2magic(relpath_u)
|
||||||
result = yield magicfolder.downloader._get_collective_latest_file(encoded_name_u)
|
result = yield magicfolder.downloader._get_collective_latest_file(encoded_name_u)
|
||||||
self.assertTrue(result is not None)
|
self.assertIsNot(
|
||||||
|
result,
|
||||||
|
None,
|
||||||
|
"collective_latest_file({}) is None".format(encoded_name_u),
|
||||||
|
)
|
||||||
node, metadata = result
|
node, metadata = result
|
||||||
|
self.assertIsNot(
|
||||||
|
metadata,
|
||||||
|
None,
|
||||||
|
"collective_latest_file({}) metadata is None".format(encoded_name_u),
|
||||||
|
)
|
||||||
self.failUnlessEqual(metadata['version'], expected_version)
|
self.failUnlessEqual(metadata['version'], expected_version)
|
||||||
|
|
||||||
def _check_version_in_local_db(self, magicfolder, relpath_u, expected_version):
|
def _check_version_in_local_db(self, magicfolder, relpath_u, expected_version):
|
||||||
|
Loading…
Reference in New Issue
Block a user