Skip to content

Commit

Permalink
Merge pull request LibraryOfCongress#36 from johnscancella/master
Browse files Browse the repository at this point in the history
fixing broken test that asserted wrong sha1 hash
  • Loading branch information
dbrunton committed Dec 31, 2014
2 parents 6312764 + 2861b91 commit de13a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Expand Up @@ -272,7 +272,7 @@ def test_validate_optional_tagfile(self):
def test_sha1_tagfile(self):
bag = bagit.make_bag(self.tmpdir, checksum=['sha1'])
self.assertTrue(os.path.isfile(j(self.tmpdir, 'tagmanifest-sha1.txt')))
self.assertEqual(bag.entries['bag-info.txt']['sha1'], 'b537642e07abc0c22c428aee65180e97f78e61dc')
self.assertEqual(bag.entries['bag-info.txt']['sha1'], 'a55b819e08b1de926b3d70a65a6e0ffd35269b56')

def test_validate_unreadable_file(self):
bag = bagit.make_bag(self.tmpdir, checksum=["md5"])
Expand Down

0 comments on commit de13a9b

Please sign in to comment.