mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Update test to reflect type change due to unicode_literals
This commit is contained in:
parent
0d92e0a868
commit
e0f4f70569
@ -6,6 +6,9 @@ from __future__ import absolute_import, print_function, unicode_literals
|
||||
# Import Salt Testing libs
|
||||
from tests.support.case import ModuleCase
|
||||
|
||||
# Import 3rd-party libs
|
||||
from salt.ext import six
|
||||
|
||||
|
||||
class StdTest(ModuleCase):
|
||||
'''
|
||||
@ -85,10 +88,10 @@ class StdTest(ModuleCase):
|
||||
'inner': 'value'}
|
||||
)
|
||||
data = ret['minion']['ret']
|
||||
self.assertIn('str', data['args'][0])
|
||||
self.assertIn(six.text_type.__name__, data['args'][0])
|
||||
self.assertIn('int', data['args'][1])
|
||||
self.assertIn('dict', data['kwargs']['outer'])
|
||||
self.assertIn('str', data['kwargs']['inner'])
|
||||
self.assertIn(six.text_type.__name__, data['kwargs']['inner'])
|
||||
|
||||
def test_full_return_kwarg(self):
|
||||
ret = self.client.cmd('minion', 'test.ping', full_return=True)
|
||||
|
Loading…
Reference in New Issue
Block a user