@@ -303,7 +303,7 @@ def test_sha1_tagfile(self):
303
303
info = {
'Bagging-Date' :
'1970-01-01' ,
'Contact-Email' :
'[email protected] ' }
304
304
bag = bagit .make_bag (self .tmpdir , checksum = ['sha1' ], bag_info = info )
305
305
self .assertTrue (os .path .isfile (j (self .tmpdir , 'tagmanifest-sha1.txt' )))
306
- self .assertEqual (bag .entries ['bag-info.txt' ]['sha1' ], 'd7f086508df433e5d7464b5a3835d5501df14404 ' )
306
+ self .assertEqual (bag .entries ['bag-info.txt' ]['sha1' ], 'ec70407d895d4e550bc0a7ea40a82ad653d136e5 ' )
307
307
308
308
def test_validate_unreadable_file (self ):
309
309
bag = bagit .make_bag (self .tmpdir , checksum = ["md5" ])
@@ -360,15 +360,15 @@ def test_make_bag(self):
360
360
self .
assertTrue (
'Contact-Email: [email protected] ' in bag_info_txt )
361
361
self .assertTrue ('Bagging-Date: 1970-01-01' in bag_info_txt )
362
362
self .assertTrue ('Payload-Oxum: 991765.5' in bag_info_txt )
363
- self .assertTrue ('Bag-Software-Agent: bagit.py <http://github.com/libraryofcongress/bagit-python>' in bag_info_txt )
363
+ self .assertTrue ('Bag-Software-Agent: bagit.py v1.5.4 <http://github.com/libraryofcongress/bagit-python>' in bag_info_txt )
364
364
365
365
# check tagmanifest-md5.txt
366
366
self .assertTrue (os .path .isfile (j (self .tmpdir , 'tagmanifest-md5.txt' )))
367
367
with open (j (self .tmpdir , 'tagmanifest-md5.txt' )) as tm :
368
368
tagmanifest_txt = tm .read ()
369
369
self .assertTrue ('9e5ad981e0d29adc278f6a294b8c2aca bagit.txt' in tagmanifest_txt )
370
370
self .assertTrue ('a0ce6631a2a6d1a88e6d38453ccc72a5 manifest-md5.txt' in tagmanifest_txt )
371
- self .assertTrue ('6a5090e27cb29d5dda8a0142fbbdf37e bag-info.txt' in tagmanifest_txt )
371
+ self .assertTrue ('bfe59ad8af1a227d27c191b4178c399f bag-info.txt' in tagmanifest_txt )
372
372
373
373
def test_make_bag_sha1_manifest (self ):
374
374
bagit .make_bag (self .tmpdir , checksum = ['sha1' ])
0 commit comments