2021-10-11 12:27:51 +02:00
|
|
|
# standard imports
|
|
|
|
import unittest
|
|
|
|
import logging
|
2021-10-11 15:28:09 +02:00
|
|
|
import os
|
2021-10-11 12:27:51 +02:00
|
|
|
|
|
|
|
# external imports
|
|
|
|
from hexathon import strip_0x
|
|
|
|
|
|
|
|
# local imports
|
2021-10-11 15:28:09 +02:00
|
|
|
from cic.meta import Meta
|
2021-10-11 12:27:51 +02:00
|
|
|
|
|
|
|
# test imports
|
2021-10-11 15:28:09 +02:00
|
|
|
from tests.base_cic import (
|
|
|
|
TestCICBase,
|
|
|
|
test_data_dir,
|
|
|
|
)
|
2021-10-11 12:27:51 +02:00
|
|
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
logg = logging.getLogger()
|
|
|
|
|
|
|
|
|
|
|
|
class TestCICMeta(TestCICBase):
|
|
|
|
|
|
|
|
def test_meta(self):
|
2021-10-11 15:28:09 +02:00
|
|
|
fp = os.path.join(test_data_dir, 'proof')
|
|
|
|
m = Meta(fp)
|
|
|
|
m.load()
|
2021-10-11 12:27:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|