1
0

test_executor.py 628 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # Import python libs
  3. from __future__ import absolute_import, print_function, unicode_literals
  4. import logging
  5. # Import Salt Testing libs
  6. from tests.support.case import ModuleCase, ShellCase
  7. from tests.support.helpers import slowTest
  8. log = logging.getLogger(__name__)
  9. class ExecutorTest(ModuleCase, ShellCase):
  10. def setup(self):
  11. self.run_function("saltutil.sync_all")
  12. @slowTest
  13. def test_executor(self):
  14. """
  15. test that dunders are set
  16. """
  17. data = self.run_call("test.arg --module-executors=arg")
  18. self.assertIn("test.arg fired", "".join(data))