def verify(self, j, e): # json_hash with no modifiers is Python JSON Hash h = objecthash.json_hash(j) self.assertEqual(hexify(h), e)
def verify(self, j, e, fns=()): h = objecthash.json_hash(j, (objecthash.commonize, ) + fns) self.assertEqual(hexify(h), e)
def verify_json(self, o, e): h = objecthash.json_hash(o, (objecthash.commonize, objecthash.redactize)) self.assertEqual(hexify(h), e)
def verify(self, j, e, fns=()): h = objecthash.json_hash(j, (objecthash.commonize,) + fns) self.assertEqual(hexify(h), e)