test_{{module_name}}.py 669 B

1234567891011121314151617181920212223
  1. # -*- coding: utf-8 -*-
  2. '''
  3. :codeauthor: {{full_name}} <{{email}}>
  4. '''
  5. # Import Python Libs
  6. from __future__ import absolute_import, unicode_literals, print_function
  7. # Import Salt Testing Libs
  8. from tests.support.mixins import LoaderModuleMockMixin
  9. from tests.support.unit import TestCase
  10. from tests.support.mock import patch
  11. import salt.modules.{{module_name}} as {{module_name}}
  12. class {{module_name|capitalize}}TestCase(TestCase, LoaderModuleMockMixin):
  13. def setup_loader_modules(self):
  14. return {% raw -%} { {%- endraw -%} {{module_name}} {%- raw -%}: {}} {%- endraw %}
  15. def test_behaviour(self):
  16. # Test inherent behaviours
  17. pass