Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 30 2021, 11:31 AM
Details
self = <swh.model.tests.test_identifiers.RawExtrinsicMetadataIdentifier testMethod=test_maximal> def test_maximal(self): manifest = ( b"raw_extrinsic_metadata 533\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"origin https://forge.softwareheritage.org/source/swh-model/\n" b"visit 42\n" b"snapshot swh:1:snp:0000000000000000000000000000000000000000\n" b"release swh:1:rel:0101010101010101010101010101010101010101\n" b"revision swh:1:rev:0202020202020202020202020202020202020202\n" b"path /abc/def\n" b"directory swh:1:dir:0303030303030303030303030303030303030303\n" b"\n" b'{"foo": "bar"}' ) self.assertEqual( > identifiers.raw_extrinsic_metadata_manifest(self.maximal), manifest, ) E AssertionError: b'target swh:1:cnt:568aaf43d83b2c3df8067f3b[501 chars]ar"}' != b'raw_extrinsic_metadata 533\x00target swh:[531 chars]ar"}' .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_identifiers.py:851: AssertionError