Add cic seal test
This commit is contained in:
parent
a2132e11c1
commit
e73a258ce9
@ -1,4 +1,4 @@
|
||||
eth_tester==0.5.0b3
|
||||
py-evm==0.3.0a20
|
||||
pytest==6.0.1
|
||||
cic-contracts~=0.3.5
|
||||
cic-contracts~=0.3.6
|
||||
|
30
python/tests/test_cic_seal.py
Normal file
30
python/tests/test_cic_seal.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user