test_syndic.py 709 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import, print_function, unicode_literals
  3. import pytest
  4. from tests.support.case import SyndicCase
  5. @pytest.mark.windows_whitelisted
  6. class TestSyndic(SyndicCase):
  7. """
  8. Validate the syndic interface by testing the test module
  9. """
  10. @pytest.mark.slow_test(seconds=30) # Test takes >10 and <=30 seconds
  11. def test_ping(self):
  12. """
  13. test.ping
  14. """
  15. self.assertTrue(self.run_function("test.ping"))
  16. @pytest.mark.slow_test(seconds=30) # Test takes >10 and <=30 seconds
  17. def test_fib(self):
  18. """
  19. test.fib
  20. """
  21. self.assertEqual(self.run_function("test.fib", ["20"],)[0], 6765)