Ejemplo n.º 1
0
 def verify(self, j, e):
     # json_hash with no modifiers is Python JSON Hash
     h = objecthash.json_hash(j)
     self.assertEqual(hexify(h), e)
Ejemplo n.º 2
0
 def verify(self, j, e, fns=()):
     h = objecthash.json_hash(j, (objecthash.commonize, ) + fns)
     self.assertEqual(hexify(h), e)
Ejemplo n.º 3
0
 def verify_json(self, o, e):
     h = objecthash.json_hash(o,
                              (objecthash.commonize, objecthash.redactize))
     self.assertEqual(hexify(h), e)
Ejemplo n.º 4
0
 def verify(self, j, e):
     # json_hash with no modifiers is Python JSON Hash
     h = objecthash.json_hash(j)
     self.assertEqual(hexify(h), e)
Ejemplo n.º 5
0
 def verify(self, j, e, fns=()):
     h = objecthash.json_hash(j, (objecthash.commonize,) + fns)
     self.assertEqual(hexify(h), e)
Ejemplo n.º 6
0
 def verify_json(self, o, e):
     h = objecthash.json_hash(o,
                              (objecthash.commonize, objecthash.redactize))
     self.assertEqual(hexify(h), e)