self = <swh.model.tests.test_cli.TestIdentify testMethod=test_symlink>
def test_symlink(self):
"""identify symlink --- both itself and target"""
regular = os.path.join(self.tmpdir_name, b"foo.txt")
link = os.path.join(self.tmpdir_name, b"bar.txt")
open(regular, "w").write("foo\n")
os.symlink(os.path.basename(regular), link)
result = self.runner.invoke(cli.identify, [link])
> self.assertSWHID(result, "swh:1:cnt:257cc5642cb1a054f08cc83f2d943e56fd3ebe99")
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_cli.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' != 'swh:1:cnt:257cc5642cb1a054f08cc83f2d943e56fd3ebe99'
E - swh:1:cnt:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
E + swh:1:cnt:257cc5642cb1a054f08cc83f2d943e56fd3ebe99
TEST RESULT
TEST RESULT
- Run At
- Apr 30 2021, 12:26 PM