1
0

test_splay.py 615 B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import, print_function, unicode_literals
  3. import salt.executors.splay as splay_exec
  4. # Import Salt libs
  5. from tests.support.mixins import LoaderModuleMockMixin
  6. from tests.support.unit import TestCase
  7. class SplayTestCase(TestCase, LoaderModuleMockMixin):
  8. def setup_loader_modules(self):
  9. return {splay_exec: {"__grains__": {"id": "foo"}}}
  10. def test__get_hash(self):
  11. # We just want to make sure that this function does not result in an
  12. # error due to passing a unicode value to bytearray()
  13. assert splay_exec._get_hash()