Replace usage of str() forcing to unicode

This commit is contained in:
Bo Maryniuk 2018-01-25 17:32:24 +01:00
parent f0c8839c1a
commit fe99de3c0c

View File

@ -14,6 +14,7 @@ from tests.support.mock import (
from salt.utils import ssdp
import datetime
from salt.ext.six.moves import zip
from salt.ext.six import text_type
try:
import pytest
@ -462,7 +463,7 @@ class SSDPClientTestCase(TestCase):
clnt._collect_masters_map(response=response)
assert clnt.log.error.called
assert 'Discovery master collection failure' in clnt.log.error.call_args[0][0]
assert error_msg == str(clnt.log.error.call_args[0][1])
assert error_msg == text_type(clnt.log.error.call_args[0][1])
assert not response
def test_discover_no_masters(self):