예제 #1
0
 def setup(self):
     self.configuration = DeviceConfiguration.get(sample_configuration, is_file_path=False)
     self.configuration['commands'][3]['delay'] = 0
     self.terminal = MockTerminal()
     self.context_manager = ContextManager()
     base_ctx = DeviceContext('base')
     base_ctx.prompt = 'device#'
     self.context_manager.add(base_ctx)
     self.command_manager = CommandManager(self.configuration)
     self.run = partial(self.command_manager.run, self.terminal, self.context_manager)
예제 #2
0
 def setup(self):
     self.configuration = DeviceConfiguration.get(sample_configuration, is_file_path=False)
     self.terminal = MockTerminal()
     self.context_manager = ContextManager()
     self.cmd = DeviceCommand(self.configuration.get('commands')[3])
예제 #3
0
 def setup(self):
     self.terminal = MockTerminal()
     self.configuration = DeviceConfiguration.get(sample_configuration, is_file_path=False)