def create_StackMachineModule_with_start_module_and_data(start_module, init_data=None):
    obj = StackMachineModule()
    obj.internal_init(Scope("Test.Module"), EventFrameworkMock())
    data = {}
    obj.start(data)
    obj.set_start_module(start_module, init_data)
    return obj, data
 def __init__(self):
     StackMachineModule.__init__(self)
     StackMachineModule.set_start_module(self, TestStackElement1)
     self.pops = 0
     self.pushs = 0
     self.interrupts = 0
     self.connector = None
     self.push_data = None