Update test to reflect type change due to unicode_literals

This commit is contained in:
Erik Johnson 2018-01-31 14:59:00 -06:00
parent 0d92e0a868
commit e0f4f70569
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -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)