self = <swh.model.tests.test_cli.TestIdentify testMethod=test_directory_id>
def test_directory_id(self):
"""identify an entire directory"""
self.make_from_tarball(self.tmpdir_name)
path = os.path.join(self.tmpdir_name, b"sample-folder")
result = self.runner.invoke(cli.identify, ["--type", "directory", path])
> self.assertSWHID(result, "swh:1:dir:e8b0f1466af8608c8a3fb9879db172b887e80759")
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_cli.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_cli.py:27: in assertSWHID
self.assertEqual(result.output.split()[0], swhid)
E AssertionError: 'File' != 'swh:1:dir:e8b0f1466af8608c8a3fb9879db172b887e80759'
E - File
E + swh:1:dir:e8b0f1466af8608c8a3fb9879db172b887e80759
TEST RESULT
TEST RESULT
- Run At
- Feb 16 2021, 2:43 PM