fix py3 test case

This commit is contained in:
Achilles Rasquinha 2018-03-23 17:29:58 +05:30
parent 2c90f4d5b9
commit 52d890e51d

View file

@ -34,6 +34,9 @@ class TestTransactionLog(unittest.TestCase):
sha = hashlib.sha256()
sha.update(str(third_log.transaction_hash) + str(second_log.chaining_hash))
sha.update(
frappe.safe_encode(str(third_log.transaction_hash)) +
frappe.safe_encode(str(second_log.chaining_hash))
)
self.assertEqual(sha.hexdigest(), third_log.chaining_hash)