chaind-eth/tests/test_adapter.py

27 lines
625 B
Python
Raw Normal View History

# stanndard imports
import logging
import unittest
# external imports
from chainlib.chain import ChainSpec
# test imports
2021-07-18 12:02:14 +02:00
from tests.chaind_eth_base import TestSQLBase
logging.basicConfig(level=logging.DEBUG)
2021-07-18 12:02:14 +02:00
class TestAdapter(TestSQLBase):
def test_eth_adapter_translate(self):
2021-07-18 12:02:14 +02:00
self.adapter.translate(self.example_tx, self.chain_spec)
# succesful decode means translate is working, no further checks needed
def test_eth_adapter_add(self):
2021-07-18 12:02:14 +02:00
self.adapter.add(self.example_tx, self.chain_spec, session=self.session_chainqueue)
if __name__ == '__main__':
unittest.main()