test_syndic.py 673 B

123456789101112131415161718192021222324252627282930
  1. # -*- coding: utf-8 -*-
  2. # Import Python libs
  3. from __future__ import absolute_import, print_function, unicode_literals
  4. # Import Salt Testing libs
  5. from tests.support.case import SyndicCase
  6. class TestSyndic(SyndicCase):
  7. '''
  8. Validate the syndic interface by testing the test module
  9. '''
  10. def test_ping(self):
  11. '''
  12. test.ping
  13. '''
  14. self.assertTrue(self.run_function('test.ping'))
  15. def test_fib(self):
  16. '''
  17. test.fib
  18. '''
  19. self.assertEqual(
  20. self.run_function(
  21. 'test.fib',
  22. ['20'],
  23. )[0],
  24. 6765
  25. )