Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_identifiers.RawExtrinsicMetadataIdentifier::test_nonascii_path
Failed

TEST RESULT

Run At
Apr 30 2021, 11:31 AM
Details
self = <swh.model.tests.test_identifiers.RawExtrinsicMetadataIdentifier testMethod=test_nonascii_path> def test_nonascii_path(self): metadata = { **self.minimal, "path": b"/ab\nc/d\xf0\x9f\xa4\xb7e\x00f", } manifest = ( b"raw_extrinsic_metadata 231\0" b"target swh:1:cnt:568aaf43d83b2c3df8067f3bedbb97d83260be6d\n" b"discovery_date 1611574071\n" b"authority forge https://forge.softwareheritage.org/\n" b"fetcher swh-phabricator-metadata-fetcher 0.0.1\n" b"format json\n" b"path /ab\n" b" c/d\xf0\x9f\xa4\xb7e\x00f\n" b"\n" b'{"foo": "bar"}' ) self.assertEqual( > identifiers.raw_extrinsic_metadata_manifest(metadata), manifest, ) E AssertionError: b'target swh:1:cnt:568aaf43d83b2c3df8067f3b[209 chars]ar"}' != b'raw_extrinsic_metadata 231\x00target swh:[239 chars]ar"}' .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_identifiers.py:881: AssertionError