self = <swh.model.tests.test_from_disk.FileToContent testMethod=test_symlink_to_content_model>
def test_symlink_to_content_model(self):
for filename, symlink in self.symlinks.items():
path = os.path.join(self.tmpdir_name, filename)
model_content = Content.from_file(path=path).to_model()
right = symlink.copy()
for key in ("perms", "path", "mode"):
right.pop(key, None)
right["status"] = "visible"
> assert model_content == model.Content.from_dict(right)
E AssertionError: assert Content(sha1=...', ctime=None) == Content(sha1=...', ctime=None)
E
E Omitting 6 identical items, use -vv to show
E Differing attributes:
E ['sha1_git']
E
E Drill down into differing attribute sha1_git:
E 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'...
E
E ...Full output truncated (5 lines hidden), use '-vv' to show
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_from_disk.py:599: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 30 2021, 12:26 PM