def test_pauses_services(self): self.register_configs.return_value = "test-config" with patch('actions.actions.percona_hooks.config_changed' ) as config_changed: actions.resume([]) self.resume_unit_helper.assert_called_once_with('test-config') config_changed.assert_called_once_with()
def test_resumes_services(self): actions.resume([]) self.resume_unit_helper.assert_called_once_with('test-config')