11 lines
305 B
Python
11 lines
305 B
Python
from tradecipher_blockchain_backed_privacy_pr.ledger import AttestationLedger
|
|
import json
|
|
|
|
|
|
def test_ledger_append_and_latest():
|
|
ledger = AttestationLedger()
|
|
payload = json.dumps({"event": "test"})
|
|
block = ledger.append(payload)
|
|
assert block.index == 0
|
|
assert ledger.latest() is block
|