1
0

test_win_autoruns.py 666 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import
  3. import pytest
  4. import salt.utils.platform
  5. from tests.support.case import ModuleCase
  6. from tests.support.helpers import slowTest
  7. from tests.support.unit import skipIf
  8. @skipIf(not salt.utils.platform.is_windows(), "windows tests only")
  9. @pytest.mark.windows_whitelisted
  10. class AutoRunsModuleTest(ModuleCase):
  11. """
  12. Test the autoruns module
  13. """
  14. @slowTest
  15. def test_win_autoruns_list(self):
  16. """
  17. test win_autoruns.list module
  18. """
  19. ret = self.run_function("autoruns.list")
  20. self.assertIn("HKLM", str(ret))
  21. self.assertTrue(isinstance(ret, dict))