mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
bbb8fe8540
You can't pass a unicode value to bytearray()
25 lines
669 B
Python
25 lines
669 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
# Import Salt libs
|
|
from tests.support.mixins import LoaderModuleMockMixin
|
|
from tests.support.unit import TestCase
|
|
|
|
import salt.executors.splay as splay_exec
|
|
|
|
|
|
class SplayTestCase(TestCase, LoaderModuleMockMixin):
|
|
|
|
def setup_loader_modules(self):
|
|
return {
|
|
splay_exec: {
|
|
'__grains__': {'id': 'foo'},
|
|
}
|
|
}
|
|
|
|
def test__get_hash(self):
|
|
# We just want to make sure that this function does not result in an
|
|
# error due to passing a unicode value to bytearray()
|
|
assert splay_exec._get_hash()
|