self = <swh.model.tests.test_from_disk.FileToContent testMethod=test_file_to_content_model>
def test_file_to_content_model(self):
for filename, content in self.contents.items():
path = os.path.join(self.tmpdir_name, filename)
model_content = Content.from_file(path=path).to_model()
right = content.copy()
for key in ("perms", "mode"):
right.pop(key, None)
> assert model_content.with_data() == 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'4\x972t\xcc\xefj\xb4\xdf\xaa\xf8e\x99y/\xa9\xc3\xfeF\x89' != b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe1\xe0qW\xb6\xcd'...
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:609: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 30 2021, 12:26 PM