Example #1
0
 def test_sha1_hash(self):
     entity_id = root(self.t).get('entityID')
     self.md.store.update(root(self.t), entity_id)
     e = self.md.lookup(entity_id)
     assert (sha1_id(
         e[0]) == "{sha1}568515f6fae8c8b4d42d543853c96d08f051ef13")
     assert (hash_id(
         e[0], 'sha1',
         prefix=False) == "568515f6fae8c8b4d42d543853c96d08f051ef13")
Example #2
0
 def test_sha1_hash(self):
     entity_id = root(self.t).get('entityID')
     self.md.store.update(root(self.t), entity_id)
     e = self.md.lookup(entity_id)
     assert (sha1_id(e[0]) == "{sha1}568515f6fae8c8b4d42d543853c96d08f051ef13")
     assert (hash_id(e[0], 'sha1', prefix=False) == "568515f6fae8c8b4d42d543853c96d08f051ef13")