Esempio n. 1
0
 def test_fidelity(self):
     t = objecthash.redactable(['foo', 'bar'])
     self.unverify(t,
                   '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     self.verify(objecthash.unredactable(t),
                 '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     t = objecthash.redactable(set(('foo', 23, 1.5, None)))
     self.unverify(t,
                   '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     self.verify(objecthash.unredactable(t),
                 '5e9dd60afdd356f015d54b27647c2e3439a45547d1efb526260c306e89de2dba')
Esempio n. 2
0
 def test_fidelity(self):
     t = objecthash.redactable(['foo', 'bar'])
     self.unverify(t,
                   '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     self.verify(objecthash.unredactable(t),
                 '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     t = objecthash.redactable(set(('foo', 23, 1.5, None)))
     self.unverify(t,
                   '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     self.verify(objecthash.unredactable(t),
                 '5e9dd60afdd356f015d54b27647c2e3439a45547d1efb526260c306e89de2dba')
Esempio n. 3
0
 def test_redactability(self):
     t = objecthash.redactable(['foo', 'bar'])
     h = hexify(objecthash.obj_hash(t))
     t[1] = objecthash.RedactedObject(t[1])
     self.verify(t, h)
Esempio n. 4
0
 def test_redactability(self):
     t = objecthash.redactable(['foo', 'bar'])
     h = hexify(objecthash.obj_hash(t))
     t[1] = objecthash.RedactedObject(t[1])
     self.verify(t, h)
Esempio n. 5
0
 def test_fidelity(self):
     t = objecthash.redactable(['foo', 'bar'])
     self.unverify(t,
                   '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')
     self.verify(objecthash.unredactable(t),
                 '32ae896c413cfdc79eec68be9139c86ded8b279238467c216cf2bec4d5f1e4a2')