mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
PY3-compatibility fix after unicode_literals was enabled
This commit is contained in:
parent
b1ae012852
commit
604ac80e7f
@ -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']),
|
||||
|
Loading…
Reference in New Issue
Block a user