tradecipher-blockchain-back.../tests/test_registry.py

8 lines
326 B
Python

from tradecipher_blockchain_backed_privacy_pr.contract_registry import ContractRegistry
def test_contract_registry_basic():
registry = ContractRegistry()
registry.register_contract("LocalTrade", "v1", {"fields": ["id", "symbol"]})
assert registry.get_contract("LocalTrade", "v1") == {"fields": ["id", "symbol"]}