def test_matcher_package_bad_command(self): steps = Steps() with steps.start("Starting action", continue_=True) as step: self.kwargs.update({'steps': step, 'device': self.dev, 'maple_plugin_input': self.plugin_input3}) maple(**self.kwargs) self.assertEqual(step.result, Failed)
def test_matcher_package_without_output(self): steps = Steps() self.dev.execute = Mock(side_effect=Exception) with steps.start("Starting action", continue_=True) as step: self.kwargs.update({'steps': step, 'device': self.dev, 'maple_plugin_input': self.plugin_input2}) maple(**self.kwargs) self.assertEqual(step.result, Failed)