mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
26 lines
611 B
Python
26 lines
611 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Import Python libs
|
|
from __future__ import absolute_import
|
|
|
|
# Import Salt Testing libs
|
|
from tests.support.case import ModuleCase
|
|
from tests.support.unit import skipIf
|
|
|
|
# Import Salt libs
|
|
import salt.utils
|
|
|
|
|
|
@skipIf(not salt.utils.is_windows(), 'windows tests only')
|
|
class AutoRunsModuleTest(ModuleCase):
|
|
'''
|
|
Test the autoruns module
|
|
'''
|
|
def test_win_autoruns_list(self):
|
|
'''
|
|
test win_autoruns.list module
|
|
'''
|
|
ret = self.run_function('autoruns.list')
|
|
self.assertIn('HKLM', str(ret))
|
|
self.assertTrue(isinstance(ret, dict))
|