We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19de132 commit 21188e0Copy full SHA for 21188e0
test.py
@@ -493,6 +493,14 @@ def test_save_baginfo(self):
493
self.assertEqual(b.info["x"], ["a", "b", "c"])
494
self.assertTrue(bag.is_valid())
495
496
+ def test_save_baginfo_with_sha1(self):
497
+ bag = bagit.make_bag(self.tmpdir, checksum=["sha1"])
498
+ self.assertTrue(bag.is_valid())
499
+ bag.info['foo'] = "bar"
500
+ bag.save()
501
+ bag = bagit.Bag(self.tmpdir)
502
503
+
504
def test_save_only_baginfo(self):
505
bag = bagit.make_bag(self.tmpdir)
506
with open(j(self.tmpdir, 'data', 'newfile'), 'w') as nf:
0 commit comments