self = <swh.model.tests.test_cli.TestIdentify testMethod=test_content_id_from_stdin>
def test_content_id_from_stdin(self):
"""identify file content"""
self.make_contents(self.tmpdir_name)
for _, content in self.contents.items():
result = self.runner.invoke(cli.identify, ["-"], input=content["data"])
> self.assertSWHID(result, "swh:1:cnt:" + hash_to_hex(content["sha1_git"]))
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_cli.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_cli.py:29: in assertSWHID
self.assertEqual(result.output.split()[0], swhid)
E AssertionError: 'swh:1:cnt:34973274ccef6ab4dfaaf86599792fa9c3fe4689' != 'swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd'
E - swh:1:cnt:34973274ccef6ab4dfaaf86599792fa9c3fe4689
E + swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd
TEST RESULT
TEST RESULT
- Run At
- Apr 30 2021, 12:26 PM