test_{{module_name}}.py 735 B

123456789101112131415161718192021222324252627
  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.states.{{module_name}} as {{module_name}}
  12. class {{module_name|capitalize}}TestCase(TestCase, LoaderModuleMockMixin):
  13. def setup_loader_modules(self):
  14. return {% raw -%} {
  15. {% endraw -%} {{module_name}} {%- raw -%}: {
  16. '__env__': 'base'
  17. }
  18. } {%- endraw %}
  19. def test_behaviour(self):
  20. # Test inherent behaviours
  21. pass