Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_from_disk.SymlinkToContent::test_symlink_to_content
Failed

TEST RESULT

Run At
Apr 30 2021, 12:26 PM
Details
self = <swh.model.tests.test_from_disk.SymlinkToContent testMethod=test_symlink_to_content> def test_symlink_to_content(self): for filename, symlink in self.symlinks.items(): path = os.path.join(self.tmpdir_name, filename) perms = 0o120000 conv_content = Content.from_symlink(path=path, mode=perms) > self.assertContentEqual(conv_content, symlink) .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_from_disk.py:545: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.model.tests.test_from_disk.SymlinkToContent testMethod=test_symlink_to_content> left = Content(id=0e8a3ad980ec179856012b7eecf4327e99cd44cd) right = {'blake2s256': b'Y]"\x1b0\xfd\xd8\xe1\x0e/\xdf\x187nh\x8e\x9f\x18\xd5o\xd9\xb6\xd1\xebj\x82/\x8c\x14lm\xa6', 'data': b'target', 'length': 6, 'perms': <DentryPerms.symlink: 40960>, ...} def assertContentEqual(self, left, right, *, check_path=False): # noqa if not isinstance(left, Content): raise ValueError("%s is not a Content" % left) if isinstance(right, Content): right = right.get_data() # Compare dictionaries keys = DEFAULT_ALGORITHMS | { "length", "perms", } if check_path: keys |= {"path"} failed = [] for key in keys: try: lvalue = left.data[key] if key == "perms" and "perms" not in right: rvalue = from_disk.mode_to_perms(right["mode"]) else: rvalue = right[key] except KeyError: failed.append(key) continue if lvalue != rvalue: failed.append(key) if failed: raise self.failureException( "Content mismatched:\n" + "\n".join( "content[%s] = %r != %r" % (key, left.data.get(key), right.get(key)) > for key in failed ) ) E AssertionError: Content mismatched: E content[sha1_git] = b'\x0e\x8a:\xd9\x80\xec\x17\x98V\x01+~\xec\xf42~\x99\xcdD\xcd' != b'\x1d\xe5e\x93;\x05\xf7Lu\xff\x9ae \xaf_\x9f\x8aZ/\x1d' .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_from_disk.py:483: AssertionError