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)
def unverify(self, j, e): h = objecthash.obj_hash(j) self.assertNotEqual(hexify(h), e)
def verify(self, o, e): h = objecthash.obj_hash(o) self.assertEqual(hexify(h), e)