def test_only_call_actions(self): self.options['-invoke'] = True invoke = Mock() self.dispatcher._invoke = invoke dispatch(self.options, self.dispatcher) invoke.assert_not_called()
def test_actions_call(self): self.options['invoke'] = True invoke = Mock() self.dispatcher.invoke = invoke dispatch(self.options, self.dispatcher) invoke.assert_called_once_with(self.options)