Add bytes that will not decode using cp1252

This commit is contained in:
Daniel A. Wozniak 2018-05-03 12:28:38 -07:00
parent 091e4cf9a6
commit 983881a2a1
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -10,6 +10,7 @@ import logging
# Import Salt libs
import salt.utils.data
import salt.utils.stringutils
import salt.utils.platform
from salt.utils.odict import OrderedDict
from tests.support.unit import TestCase, skipIf, LOREM_IPSUM
from tests.support.mock import patch, NO_MOCK, NO_MOCK_REASON
@ -21,6 +22,9 @@ _b = lambda x: x.encode('utf-8')
_s = lambda x: salt.utils.stringutils.to_str(x, normalize=True)
# Some randomized data that will not decode
BYTES = b'\x9c\xb1\xf7\xa3'
if salt.utils.platform.is_windows():
BYTES = b'1\x814\x10'
# This is an example of a unicode string with й constructed using two separate
# code points. Do not modify it.
EGGS = '\u044f\u0438\u0306\u0446\u0430'