Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 30 2021, 11:31 AM
Details
self = <swh.model.tests.test_identifiers.RawExtrinsicMetadataIdentifier testMethod=test_negative_epoch> def test_negative_epoch(self): metadata = { **self.minimal, "discovery_date": datetime.datetime( 1969, 12, 31, 23, 59, 59, 1, tzinfo=datetime.timezone.utc, ), } manifest = ( b"raw_extrinsic_metadata 202\0" b"target swh:1:cnt:568aaf43d83b2c3df8067f3bedbb97d83260be6d\n" b"discovery_date -1\n" b"authority forge https://forge.softwareheritage.org/\n" b"fetcher swh-phabricator-metadata-fetcher 0.0.1\n" b"format json\n" b"\n" b'{"foo": "bar"}' ) self.assertEqual( > identifiers.raw_extrinsic_metadata_manifest(metadata), manifest, ) E AssertionError: b'target swh:1:cnt:568aaf43d83b2c3df8067f3b[163 chars]ar"}' != b'raw_extrinsic_metadata 202\x00target swh:[193 chars]ar"}' .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_identifiers.py:1045: AssertionError