Merge pull request #5265 from achillesrasquinha/py3-tests
unicode hash test fix
This commit is contained in:
commit
42d737c030
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue