Add cic seal test

This commit is contained in:
lash 2023-06-08 16:58:20 +01:00
parent a2132e11c1
commit e73a258ce9
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 31 additions and 1 deletions

View File

@ -1,4 +1,4 @@
eth_tester==0.5.0b3 eth_tester==0.5.0b3
py-evm==0.3.0a20 py-evm==0.3.0a20
pytest==6.0.1 pytest==6.0.1
cic-contracts~=0.3.5 cic-contracts~=0.3.6

View File

@ -0,0 +1,30 @@
# standard imports
import unittest
import logging
# external imports
from chainlib.eth.tx import receipt
from chainlib.eth.block import block_latest
from chainlib.eth.block import block_by_number
from eth_seal.unittest import TestEthSealInterface
from eth_seal.unittest.base import TestEthSeal
from ge_capped_token.unittest import TestCappedToken
logging.basicConfig(level=logging.DEBUG)
logg = logging.getLogger()
class TestEthCappedSeal(TestEthSeal, TestCappedToken, TestEthSealInterface):
def setUp(self):
super(TestEthCappedSeal, self).setUp()
self.set_method = self.seal
self.max_seal_state = 15
self.publish()
self.contracts['seal'] = self.address
self.roles['seal'] = self.accounts[0]
if __name__ == '__main__':
unittest.main()