Fix to_ntext test.

This commit is contained in:
Andris Raugulis 2017-04-06 05:27:40 +03:00
parent 21a93cbd66
commit 6c8173d409

View File

@ -78,7 +78,7 @@ class TestUtils(object):
assert self.utils.to_ntext('fran\xc3\xa7ais') == 'fran\xc3\xa7ais'
assert self.utils.to_ntext(u'fran\xe7ais') == 'fran\xe7ais'
# binary_type (bytes)
assert self.utils.to_utext(b'fran\xc3\xa7ais') == 'fran\xe7ais'
assert self.utils.to_ntext(b'fran\xc3\xa7ais') == 'fran\xe7ais'
# other
with pytest.raises(TypeError):
self.utils.to_ntext(123)