templates.test_michelson_error

 1import smartpy as sp
 2
 3
 4@sp.module
 5def main():
 6    class MyContract(sp.Contract):
 7        def __init__(self):
 8            self.data.x = []
 9
10
11@sp.add_test()
12def test():
13    scenario = sp.test_scenario("Test", main)
14    scenario += main.MyContract()