PY3-compatibility fix after unicode_literals was enabled

This commit is contained in:
Erik Johnson 2018-01-27 16:28:01 -06:00
parent b1ae012852
commit 604ac80e7f
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -46,7 +46,7 @@ class WinDnsClientTestCase(TestCase, LoaderModuleMockMixin):
mock = MagicMock(return_value=[2, 'salt'])
with patch.dict(win_dns_client.__salt__,
{'win_dns_client.get_dns_servers': mock}):
ret.update({'changes': {}, 'comment': "[2, u'salt'] are already"
ret.update({'changes': {}, 'comment': repr([2, 'salt']) + " are already"
" configured", 'result': True})
self.assertDictEqual(win_dns_client.dns_exists('salt',
[2, 'salt']),